From 665bb6a5202ad0ca30e60bec338ca65853c1b131 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 28 Apr 2026 22:42:48 +0200 Subject: Make clang-tidy happy --- src/errors.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/errors.cc') 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 -- cgit v1.3