-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,42 @@ | ||
# Settings file automatically used by clang-tidy | ||
# Heavily adapted from the deal.II clang-tidy file | ||
# | ||
# See ./contrib/utilities/run_clang_tidy.sh for details | ||
|
||
# We disable performance-inefficient-string-concatenation because we don't care about "a"+to_string(5)+... | ||
# | ||
# Rationale for disabling warnings: | ||
# | ||
# - selected modernize-* warnings: | ||
# Some of these produce a lot of noise for limited utility. | ||
# | ||
# - performance-inefficient-string-concatenation: | ||
# We don't care about "a"+to_string(5)+... | ||
# | ||
# - performance-no-automatic-move: | ||
# All modern compilers perform the return value optimization and we prefer | ||
# to keep things const. | ||
# | ||
|
||
Checks: "-*,cppcoreguidelines-pro-type-static-cast-downcast,google-readability-casting,modernize-*,-modernize-pass-by-value,-modernize-raw-string-literal,-modernize-use-auto,-modernize-use-override,-modernize-use-default-member-init,-modernize-use-transparent-functors,use-emplace,mpi-*,performance-*,-performance-inefficient-string-concatenation" | ||
Checks: > | ||
-*, | ||
cppcoreguidelines-pro-type-static-cast-downcast, | ||
modernize-*, | ||
-modernize-avoid-c-arrays, | ||
-modernize-concat-nested-namespaces, | ||
-modernize-pass-by-value, | ||
-modernize-raw-string-literal, | ||
-modernize-return-braced-init-list, | ||
-modernize-use-auto, | ||
-modernize-use-default-member-init, | ||
-modernize-use-nodiscard, | ||
-modernize-use-override, | ||
-modernize-use-trailing-return-type, | ||
-modernize-use-transparent-functors, | ||
mpi-*, | ||
performance-*, | ||
-performance-inefficient-string-concatenation, | ||
-performance-no-automatic-move, | ||
-performance-avoid-endl, | ||
readability-qualified-auto | ||
WarningsAsErrors: '*' |