From b4ce4a962bd0b870177567e52f43a809d6ad3db0 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 6 Apr 2022 12:58:55 +0200 Subject: [PATCH] :rotating_light: suppress Clang-Tidy warnings --- .clang-tidy | 1 + test/src/unit-allocator.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 30886d7c8..3673930d4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,6 +4,7 @@ Checks: '*, -altera-unroll-loops, -android-cloexec-fopen, -bugprone-easily-swappable-parameters, + -cert-err58-cpp, -concurrency-mt-unsafe, -cppcoreguidelines-avoid-goto, -cppcoreguidelines-avoid-magic-numbers, diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp index b2d27c8be..268ae54df 100644 --- a/test/src/unit-allocator.cpp +++ b/test/src/unit-allocator.cpp @@ -49,7 +49,7 @@ struct bad_allocator : std::allocator }; } // namespace -TEST_CASE("bad_alloc") // NOLINT(cert-err58-cpp) +TEST_CASE("bad_alloc") { SECTION("bad_alloc") { @@ -132,7 +132,7 @@ void my_allocator_clean_up(T* p) } } // namespace -TEST_CASE("controlled bad_alloc") // NOLINT(cert-err58-cpp) +TEST_CASE("controlled bad_alloc") { // create JSON type using the throwing allocator using my_json = nlohmann::basic_json }; } // namespace -TEST_CASE("bad my_allocator::construct") // NOLINT(cert-err58-cpp) +TEST_CASE("bad my_allocator::construct") { SECTION("my_allocator::construct doesn't forward") {