Imported Upstream version 1.36.4
[platform/upstream/grpc.git] / .clang-tidy
1 ---
2 # Disable abseil-no-namespace: https://bugs.llvm.org/show_bug.cgi?id=47947
3 Checks: '-*,
4   abseil-*,
5   -abseil-no-namespace,
6   bugprone-*,
7   -bugprone-narrowing-conversions,
8   -bugprone-too-small-loop-variable,
9   performance-*,
10   -performance-unnecessary-copy-initialization,
11   -performance-unnecessary-value-param,
12   google-*,
13   -google-runtime-int,
14   -google-runtime-references,
15   misc-definitions-in-headers,
16   misc-static-assert,
17   misc-unconventional-assign-operator,
18   misc-uniqueptr-reset-release,
19   misc-unused-alias-decls,
20   misc-unused-using-decls,
21   modernize-make-unique,
22   -modernize-redundant-void-arg,
23   modernize-replace-auto-ptr,
24   modernize-shrink-to-fit,
25   modernize-use-bool-literals,
26   modernize-use-nullptr,
27   modernize-use-override,
28   readability-container-size-empty,
29   readability-deleted-default,
30   readability-function-size,
31   readability-inconsistent-declaration-parameter-name,
32   readability-redundant-control-flow,
33   readability-redundant-smartptr-get,
34   readability-string-compare'
35 WarningsAsErrors: '*'
36 CheckOptions:
37   - key:    readability-function-size.StatementThreshold
38     value:  '450'
39   - key:    modernize-make-unique.MakeSmartPtrFunction
40     value:  'absl::make_unique'
41   - key:    modernize-make-unique.MakeSmartPtrFunctionHeader
42     value:  'absl/memory/memory.h'
43   - key:    google-readability-braces-around-statements.ShortStatementLines
44     value:  1