Skip to content

Commit

Permalink
clang-tidy: Ignore do-while in macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettbuddin committed Jan 3, 2025
1 parent 2e25477 commit cdf8cc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ FormatStyle: llvm
CheckOptions:
cppcoreguidelines-avoid-magic-numbers.IgnorePowersOf2IntegerValues: 'true'
cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues: 'true'
cppcoreguidelines-avoid-do-while.IgnoreMacros: 'true'
llvm-else-after-return.WarnOnConditionVariables: 'false'
modernize-loop-convert.MinConfidence: reasonable
modernize-replace-auto-ptr.IncludeStyle: llvm
Expand Down
2 changes: 0 additions & 2 deletions test/test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// NOLINTBEGIN(cppcoreguidelines-avoid-non-const-global-variables)
// NOLINTBEGIN(cppcoreguidelines-avoid-do-while)

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

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

0 comments on commit cdf8cc0

Please sign in to comment.