Skip to content

Commit

Permalink
Add .clang-tidy file
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisb committed Aug 15, 2024
1 parent 16cee9e commit 872f243
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .clang-tidy
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: '*'

0 comments on commit 872f243

Please sign in to comment.