Skip to content

Commit cdf8cc0

Browse files
committed
clang-tidy: Ignore do-while in macros.
1 parent 2e25477 commit cdf8cc0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ FormatStyle: llvm
77
CheckOptions:
88
cppcoreguidelines-avoid-magic-numbers.IgnorePowersOf2IntegerValues: 'true'
99
cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues: 'true'
10+
cppcoreguidelines-avoid-do-while.IgnoreMacros: 'true'
1011
llvm-else-after-return.WarnOnConditionVariables: 'false'
1112
modernize-loop-convert.MinConfidence: reasonable
1213
modernize-replace-auto-ptr.IncludeStyle: llvm

test/test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// NOLINTBEGIN(cppcoreguidelines-avoid-non-const-global-variables)
2-
// NOLINTBEGIN(cppcoreguidelines-avoid-do-while)
32

43
#include <catch2/catch_approx.hpp>
54
#include <catch2/catch_test_macros.hpp>
@@ -397,5 +396,4 @@ TEST_CASE("hilbert transform: phase coherence") {
397396
CHECK(hilbertTransform(15000.0f) < 2.0f);
398397
}
399398

400-
// NOLINTEND(cppcoreguidelines-avoid-do-while)
401399
// NOLINTEND(cppcoreguidelines-avoid-non-const-global-variables)

0 commit comments

Comments
 (0)