From d2d591047995b80bb9e55d104397c229a586d644 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Thu, 13 Jul 2017 08:26:08 +0100 Subject: [PATCH] Suppress clang-tidy warnings about inline asm --- include/internal/catch_debugger.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_debugger.h b/include/internal/catch_debugger.h index ddb37097..279bec06 100644 --- a/include/internal/catch_debugger.h +++ b/include/internal/catch_debugger.h @@ -21,14 +21,14 @@ namespace Catch{ #ifdef CATCH_PLATFORM_MAC - #define CATCH_TRAP() __asm__("int $3\n" : : ) + #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */ #elif defined(CATCH_PLATFORM_LINUX) // If we can use inline assembler, do it because this allows us to break // directly at the location of the failing check instead of breaking inside // raise() called from it, i.e. one stack frame below. #if defined(__GNUC__) && (defined(__i386) || defined(__x86_64)) - #define CATCH_TRAP() asm volatile ("int $3") + #define CATCH_TRAP() asm volatile ("int $3") /* NOLINT */ #else // Fall back to the generic way. #include