diff options
| author | Moritz Haase | 2020-04-02 14:22:01 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-01 09:31:48 +0200 |
| commit | 87c80551769f4e9f5c10aca764080a4cf1dbd87a (patch) | |
| tree | 1762a52fd38a40181db56dae69afe71e741a49c1 | |
| parent | 46cc551b7a98a7992c80fc1c3b38b5de29d7c431 (diff) | |
| download | catch3-87c80551769f4e9f5c10aca764080a4cf1dbd87a.tar.gz | |
Suppress clang-tidy warning about vararg usage in assertion macros
CATCH_INTERNAL_IGNORE_BUT_WARN() introduced with b7b346c triggers
clang-tidy warning 'cppcoreguidelines-pro-type-vararg' for every usage
of assertion macros like CHECK() and REQUIRE(). Silence it via NOLINT
in the '#if defined(__clang__)' block only, as clang-tidy honors those.
| -rw-r--r-- | src/catch2/internal/catch_compiler_capabilities.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_compiler_capabilities.hpp b/src/catch2/internal/catch_compiler_capabilities.hpp index f7a4632d..f677c43f 100644 --- a/src/catch2/internal/catch_compiler_capabilities.hpp +++ b/src/catch2/internal/catch_compiler_capabilities.hpp @@ -66,7 +66,7 @@ # define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION _Pragma( "clang diagnostic push" ) # define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION _Pragma( "clang diagnostic pop" ) -# define CATCH_INTERNAL_IGNORE_BUT_WARN(...) (void)__builtin_constant_p(__VA_ARGS__) +# define CATCH_INTERNAL_IGNORE_BUT_WARN(...) (void)__builtin_constant_p(__VA_ARGS__) /* NOLINT(cppcoreguidelines-pro-type-vararg) */ # define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \ |