🚨 suppress Clang-Tidy warnings

This commit is contained in:
Niels Lohmann 2022-04-06 12:58:55 +02:00
parent acbffd05a4
commit b4ce4a962b
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 4 additions and 3 deletions

View File

@ -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,

View File

@ -49,7 +49,7 @@ struct bad_allocator : std::allocator<T>
};
} // 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<std::map,
@ -255,7 +255,7 @@ struct allocator_no_forward : std::allocator<T>
};
} // namespace
TEST_CASE("bad my_allocator::construct") // NOLINT(cert-err58-cpp)
TEST_CASE("bad my_allocator::construct")
{
SECTION("my_allocator::construct doesn't forward")
{