mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Update .clang-tidy to have performance-* enabled with some exclusions
This commit is contained in:
parent
c609d5c90a
commit
db69773d23
1 changed files with 7 additions and 9 deletions
16
.clang-tidy
16
.clang-tidy
|
@ -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,
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue