diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
| commit | 4fa6821e0645ff61a9380cd090abff472205c630 (patch) | |
| tree | bd95f13b2dc0bd9692681f50c365d2914a520bfe /nihil.error | |
| parent | e5180acf5f2dfac788e8c12886095ed1ac66fae5 (diff) | |
| download | nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.gz nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.bz2 | |
add clang-tidy support
Diffstat (limited to 'nihil.error')
| -rw-r--r-- | nihil.error/error.cc | 2 | ||||
| -rw-r--r-- | nihil.error/error.ccm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nihil.error/error.cc b/nihil.error/error.cc index 15805a3..e4023f9 100644 --- a/nihil.error/error.cc +++ b/nihil.error/error.cc @@ -85,7 +85,7 @@ auto error::root_cause(this error const &self) -> error const & if (self.m_cause) return self.m_cause->root_cause(); - return self; + return self; //NOLINT(bugprone-return-const-ref-from-parameter) } auto error::str(this error const &self) -> std::string diff --git a/nihil.error/error.ccm b/nihil.error/error.ccm index b624184..12d47cc 100644 --- a/nihil.error/error.ccm +++ b/nihil.error/error.ccm @@ -53,7 +53,7 @@ export struct error : std::exception { error(); // Destroy an error. - virtual ~error(); + ~error() override; // Create an error from a freeform string. error(std::string_view what, error cause); |
