Skip to content

Commit

Permalink
Update .clang-tidy to find more performance issues (milvus-io#22836)
Browse files Browse the repository at this point in the history
Signed-off-by: yah01 <yang.cen@zilliz.com>
  • Loading branch information
yah01 authored Mar 19, 2023
1 parent 4899d84 commit bd054d9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -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 ')$'
Expand All @@ -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
Expand Down

0 comments on commit bd054d9

Please sign in to comment.