🚨 suppress Clang-Tidy warnings
This commit is contained in:
parent
acbffd05a4
commit
b4ce4a962b
@ -4,6 +4,7 @@ Checks: '*,
|
|||||||
-altera-unroll-loops,
|
-altera-unroll-loops,
|
||||||
-android-cloexec-fopen,
|
-android-cloexec-fopen,
|
||||||
-bugprone-easily-swappable-parameters,
|
-bugprone-easily-swappable-parameters,
|
||||||
|
-cert-err58-cpp,
|
||||||
-concurrency-mt-unsafe,
|
-concurrency-mt-unsafe,
|
||||||
-cppcoreguidelines-avoid-goto,
|
-cppcoreguidelines-avoid-goto,
|
||||||
-cppcoreguidelines-avoid-magic-numbers,
|
-cppcoreguidelines-avoid-magic-numbers,
|
||||||
|
|||||||
@ -49,7 +49,7 @@ struct bad_allocator : std::allocator<T>
|
|||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
TEST_CASE("bad_alloc") // NOLINT(cert-err58-cpp)
|
TEST_CASE("bad_alloc")
|
||||||
{
|
{
|
||||||
SECTION("bad_alloc")
|
SECTION("bad_alloc")
|
||||||
{
|
{
|
||||||
@ -132,7 +132,7 @@ void my_allocator_clean_up(T* p)
|
|||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
TEST_CASE("controlled bad_alloc") // NOLINT(cert-err58-cpp)
|
TEST_CASE("controlled bad_alloc")
|
||||||
{
|
{
|
||||||
// create JSON type using the throwing allocator
|
// create JSON type using the throwing allocator
|
||||||
using my_json = nlohmann::basic_json<std::map,
|
using my_json = nlohmann::basic_json<std::map,
|
||||||
@ -255,7 +255,7 @@ struct allocator_no_forward : std::allocator<T>
|
|||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
TEST_CASE("bad my_allocator::construct") // NOLINT(cert-err58-cpp)
|
TEST_CASE("bad my_allocator::construct")
|
||||||
{
|
{
|
||||||
SECTION("my_allocator::construct doesn't forward")
|
SECTION("my_allocator::construct doesn't forward")
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user