Skip to content

Commit

Permalink
Temporarily disable a few clang-tidy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong committed Feb 13, 2024
1 parent 19fa657 commit 96f2322
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
# We have lots of memory allocations in static variable declarations, and
# that's fine.
#
# * clang-analyzer-core.{DivideZero,NonNullParamChecker}
# * clang-analyzer-cplusplus.NewDelete
# They report too many false positives.
#
# * modernize-use-auto
# We prefer an almost-always-avoid-auto style.
#
Expand All @@ -49,25 +53,37 @@ cert-*,\
-cert-dcl51-cpp,\
-cert-err58-cpp,\
clang-diagnostic-*,\
-clang-analyzer-core.CallAndMessage,\
-clang-analyzer-core.DivideZero,\
-clang-analyzer-core.NonNullParamChecker,\
-clang-analyzer-cplusplus.NewDelete,\
cppcoreguidelines-slicing,\
google-explicit-constructor,\
llvm-namespace-comment,\
misc-*,\
modernize-*,\
-modernize-use-auto,\
-modernize-use-emplace,\
-modernize-use-trailing-return-type,\
performance-*,\
-performance-avoid-endl,\
-performance-noexcept-swap,\
-performance-no-automatic-move,\
readability-*,\
-readability-braces-around-statements,\
-bugprone-assignment-in-if-condition,\
-bugprone-easily-swappable-parameters,\
-bugprone-empty-catch,\
-bugprone-implicit-widening-of-multiplication-result,\
-bugprone-narrowing-conversions,\
-bugprone-switch-missing-default-case,\
-bugprone-throw-keyword-missing,\
-bugprone-unchecked-optional-access,\
-bugprone-unhandled-exception-at-new,\
-misc-confusable-identifiers,\
-misc-const-correctness,\
-misc-header-include-cycle,\
-misc-include-cleaner,\
-misc-no-recursion,\
-misc-non-private-member-variables-in-classes,\
-misc-use-anonymous-namespace,\
Expand All @@ -77,6 +93,7 @@ readability-*,\
-modernize-return-braced-init-list,\
-modernize-use-default-member-init,\
-modernize-use-nodiscard,\
-readability-avoid-unconditional-preprocessor-if,\
-readability-container-data-pointer,\
-readability-convert-member-functions-to-static,\
-readability-duplicate-include,\
Expand Down

0 comments on commit 96f2322

Please sign in to comment.