Skip to content

Commit

Permalink
Enable more clang-tidy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Dec 8, 2023
1 parent 131fe0d commit 443b748
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
6 changes: 1 addition & 5 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Checks: >
bugprone-*,
-bugprone-macro-parentheses,
-bugprone-misplaced-widening-cast,
-bugprone-exception-escape,
-bugprone-signed-char-misuse,
Expand All @@ -18,6 +17,7 @@ Checks: >
concurrency-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-pro-bounds-constant-array-index,
Expand All @@ -30,22 +30,18 @@ Checks: >
misc-*,
-misc-use-anonymous-namespace,
-misc-const-correctness,
modernize-*,
performance-*,
readability-*,
-readability-const-return-type,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-identifier-naming,
-*-avoid-c-arrays,
-*-magic-numbers,
-*-non-private-member-variables-in-classes,
-*-special-member-functions,
WarningsAsErrors: "*"
FormatStyle: none
Expand Down
1 change: 0 additions & 1 deletion src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ target_sources(neo_fft_tests
"neo/fft/stft_test.cpp"
"neo/fft/twiddle_test.cpp"


"neo/fixed_point/fixed_point_test.cpp"

"neo/math/a_weighting_test.cpp"
Expand Down
6 changes: 3 additions & 3 deletions src/lib/neo/fft/kernel/radix2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ struct c2c_dit2_v1

for (auto k = 0; std::cmp_less(k, size); k += stride) {
for (auto pair = 0; pair < stage_length; ++pair) {
auto const tw = twiddles[static_cast<std::size_t>(pair * tw_stride)];
auto const tw = twiddles[pair * tw_stride];

auto const i1 = static_cast<std::size_t>(k + pair);
auto const i2 = static_cast<std::size_t>(k + pair + stage_length);
auto const i1 = k + pair;
auto const i2 = i1 + stage_length;

auto const temp = x[i1] + tw * x[i2];
x[i2] = x[i1] - tw * x[i2];
Expand Down

0 comments on commit 443b748

Please sign in to comment.