mirror of https://github.com/milvus-io/milvus.git
Update .clang-tidy to find more performance issues (#22836)
Signed-off-by: yah01 <yang.cen@zilliz.com>pull/22838/head
parent
4899d84439
commit
bd054d90c9
17
.clang-tidy
17
.clang-tidy
|
@ -20,13 +20,14 @@ Checks: >
|
|||
-*, clang-diagnostic-*, -clang-diagnostic-error,
|
||||
clang-analyzer-*, -clang-analyzer-alpha*,
|
||||
google-*, -google-runtime-references, -google-readability-todo,
|
||||
modernize-*, -modernize-pass-by-value, -modernize-use-equals-default, -modernize-use-trailing-return-type,
|
||||
performance-faster-string-find, performance-for-range-copy,
|
||||
performance-implicit-conversion-in-loop, performance-inefficient-algorithm,
|
||||
performance-trivially-destructible, performance-inefficient-vector-operation,
|
||||
performance-move-const-arg, performance-move-constructor-init,
|
||||
performance-noexcept-move-constructor, performance-no-automatic-move,
|
||||
performance-type-promotion-in-math-fn
|
||||
modernize-*, -modernize-use-trailing-return-type,
|
||||
performance-*,
|
||||
bugprone-bool-pointer-implicit-conversion,
|
||||
bugprone-branch-clone,
|
||||
bugprone-dangling-handle,
|
||||
bugprone-exception-escape,
|
||||
bugprone-inaccurate-erase,
|
||||
|
||||
|
||||
# produce HeaderFilterRegex from core/build-support/lint_exclusions.txt with:
|
||||
# echo -n '^?!('; sed -e 's/*/\.*/g' core/build-support/lint_exclusions.txt | tr '\n' '|'; echo ')$'
|
||||
|
@ -36,7 +37,7 @@ CheckOptions:
|
|||
- key: google-readability-braces-around-statements.ShortStatementLines
|
||||
value: '1'
|
||||
- key: google-readability-function-size.StatementThreshold
|
||||
value: '800'
|
||||
value: '200'
|
||||
- key: google-readability-namespace-comments.ShortNamespaceLines
|
||||
value: '10'
|
||||
- key: google-readability-namespace-comments.SpacesBeforeComments
|
||||
|
|
Loading…
Reference in New Issue