diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2026-04-28 22:42:48 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2026-04-28 22:43:08 +0200 |
| commit | 665bb6a5202ad0ca30e60bec338ca65853c1b131 (patch) | |
| tree | 4d938a3f1bc3160ac065d9a437f2c1b6eb724864 /src/errors.hh | |
| parent | 2f43e9123dc406112d0802a82698cd124f42a794 (diff) | |
Make clang-tidy happy
Diffstat (limited to 'src/errors.hh')
| -rw-r--r-- | src/errors.hh | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/errors.hh b/src/errors.hh index d8b3d60..b7b0143 100644 --- a/src/errors.hh +++ b/src/errors.hh @@ -13,12 +13,14 @@ namespace src { class Errors { public: virtual ~Errors() = default; + Errors(Errors const&) = delete; + Errors& operator=(Errors const&) = delete; virtual void err(Location loc, std::string_view msg) = 0; virtual void warn(Location loc, std::string_view msg) = 0; -#if !defined(NDEBUG) +#ifndef NDEBUG virtual void dbg(Location loc, std::string_view msg) = 0; #else void dbg(Location, std::string_view) {} @@ -31,22 +33,18 @@ class Errors { protected: Errors() = default; - - Errors(Errors const&) = delete; - Errors& operator=(Errors const&) = delete; }; class ErrorsOutput { public: virtual ~ErrorsOutput() = default; + ErrorsOutput(ErrorsOutput const&) = delete; + ErrorsOutput& operator=(ErrorsOutput const&) = delete; virtual void println(std::string_view line) = 0; protected: ErrorsOutput() = default; - - ErrorsOutput(ErrorsOutput const&) = delete; - ErrorsOutput& operator=(ErrorsOutput const&) = delete; }; [[nodiscard]] |
