summaryrefslogtreecommitdiff
path: root/src/errors.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2026-04-28 22:42:48 +0200
committerJoel Klinghed <the_jk@spawned.biz>2026-04-28 22:43:08 +0200
commit665bb6a5202ad0ca30e60bec338ca65853c1b131 (patch)
tree4d938a3f1bc3160ac065d9a437f2c1b6eb724864 /src/errors.cc
parent2f43e9123dc406112d0802a82698cd124f42a794 (diff)
Make clang-tidy happy
Diffstat (limited to 'src/errors.cc')
-rw-r--r--src/errors.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errors.cc b/src/errors.cc
index 7122a9a..7d77d96 100644
--- a/src/errors.cc
+++ b/src/errors.cc
@@ -32,7 +32,7 @@ class FileErrors : public Errors {
loc.column, msg));
}
-#if !defined(NDEBUG)
+#ifndef NDEBUG
void dbg(Location loc, std::string_view msg) override {
output_->println(std::format("{}:{}:{}: Debug: {}", filename_, loc.line,
loc.column, msg));
@@ -63,7 +63,7 @@ class IgnoreErrors : public Errors {
void err(Location /* loc */, std::string_view /* msg */) override {}
void warn(Location /* loc */, std::string_view /* msg */) override {}
-#if !defined(NDEBUG)
+#ifndef NDEBUG
void dbg(Location /* loc */, std::string_view /* msg */) override {}
#endif