Skip to content

Commit

Permalink
Merge pull request #278 from Exawind/ignore_macros_cognitive_complexity
Browse files Browse the repository at this point in the history
The clang-tidy congnitive complexity check no longer expands macros.
  • Loading branch information
ddement authored Oct 1, 2024
2 parents 1f52662 + 141e68f commit 9b59dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Checks: "bugprone*,
-bugprone-easily-swappable-parameters,
-readability-named-parameter,
"
CheckOptions:
readability-function-cognitive-complexity.IgnoreMacros: 'true'
WarningsAsErrors: ''
HeaderFilterRegex: '.*'
FormatStyle: none
2 changes: 0 additions & 2 deletions tests/unit_tests/system/test_calculate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ inline void CompareWithExpected(
}
}

// NOLINTBEGIN(readability-function-cognitive-complexity)
inline void CompareWithExpected(
const Kokkos::View<const double*****>::host_mirror_type& result,
const Kokkos::View<const double*****, Kokkos::HostSpace>& expected
Expand All @@ -61,5 +60,4 @@ inline void CompareWithExpected(
}
}
}
// NOLINTEND(readability-function-cognitive-complexity)
} // namespace openturbine::tests

0 comments on commit 9b59dcf

Please sign in to comment.