From 52096e4299558f0a7ebea9bc26f797847502449d Mon Sep 17 00:00:00 2001 From: Jon Meow <46229924+jonmeow@users.noreply.github.com> Date: Thu, 14 Oct 2021 13:39:05 -0700 Subject: [PATCH] Apply clang-tidy fixes to the common dir (#884) --- executable_semantics/common/error.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/executable_semantics/common/error.h b/executable_semantics/common/error.h index f8ef64ab8122..9d4e483fe35c 100644 --- a/executable_semantics/common/error.h +++ b/executable_semantics/common/error.h @@ -23,17 +23,19 @@ namespace Carbon { #define FATAL_PROGRAM_ERROR_NO_LINE() RAW_EXITING_STREAM() << "PROGRAM ERROR: " -#define FATAL_PROGRAM_ERROR(line) FATAL_PROGRAM_ERROR_NO_LINE() << line << ": " +#define FATAL_PROGRAM_ERROR(line) \ + FATAL_PROGRAM_ERROR_NO_LINE() << (line) << ": " #define FATAL_COMPILATION_ERROR_NO_LINE() \ RAW_EXITING_STREAM() << "COMPILATION ERROR: " #define FATAL_COMPILATION_ERROR(line) \ - FATAL_COMPILATION_ERROR_NO_LINE() << line << ": " + FATAL_COMPILATION_ERROR_NO_LINE() << (line) << ": " #define FATAL_RUNTIME_ERROR_NO_LINE() RAW_EXITING_STREAM() << "RUNTIME ERROR: " -#define FATAL_RUNTIME_ERROR(line) FATAL_RUNTIME_ERROR_NO_LINE() << line << ": " +#define FATAL_RUNTIME_ERROR(line) \ + FATAL_RUNTIME_ERROR_NO_LINE() << (line) << ": " } // namespace Carbon