Update .clang-tidy to have performance-* enabled with some exclusions

This commit is contained in:
Tim Wojtulewicz 2025-04-28 10:45:58 -07:00
parent c609d5c90a
commit db69773d23

View file

@ -1,17 +1,11 @@
Checks: [-*, Checks: [-*,
bugprone-*, bugprone-*,
performance-avoid-endl, performance-*,
performance-enum-size,
performance-faster-string-find,
performance-for-range-copy,
performance-inefficient-vector-operation,
performance-move-const-argument,
performance-unnecessary-copy-initialization,
performance-inefficient-string-concatenation,
# Skipping these temporarily because they are very noisy # Skipping these temporarily because they are very noisy
-bugprone-narrowing-conversions, -bugprone-narrowing-conversions,
-bugprone-unchecked-optional-access, -bugprone-unchecked-optional-access,
-performance-unnecessary-value-param,
# The following cause either lots of pointless or advisory warnings # The following cause either lots of pointless or advisory warnings
-bugprone-easily-swappable-parameters, -bugprone-easily-swappable-parameters,
@ -30,5 +24,9 @@ Checks: [-*,
-bugprone-undefined-memory-manipulation, -bugprone-undefined-memory-manipulation,
-bugprone-pointer-arithmetic-on-polymorphic-object, -bugprone-pointer-arithmetic-on-polymorphic-object,
-bugprone-empty-catch, -bugprone-empty-catch,
-bugprone-exception-escape -bugprone-exception-escape,
# This one returns a bunch of findings in DFA and the sqlite library.
# We're unlikely to fix either of them.
-performance-no-int-to-ptr,
] ]