Add the initializes attribute inference (#117104)
[llvm-project.git] / libcxx / .clang-tidy
blobf986e2100ca6b17fce91985bddeb9d308b227628
1 Checks: >
2   bugprone-copy-constructor-init,
3   bugprone-dangling-handle,
4   bugprone-infinite-loop,
5   bugprone-stringview-nullptr,
6   bugprone-use-after-move,
8   llvm-include-order,
9   llvm-namespace-comment,
11   misc-definitions-in-headers,
12   misc-misplaced-const,
13   misc-non-copyable-objects,
14   misc-uniqueptr-reset-release,
16   modernize-loop-convert,
17   modernize-redundant-void-arg,
18   modernize-use-nullptr,
19   modernize-use-override,
20   modernize-use-equals-delete,
22   readability-duplicate-include,
23   readability-identifier-naming,
24   readability-function-cognitive-complexity,
25   readability-function-size,
26   readability-misplaced-array-index,
27   readability-redundant-control-flow,
28   readability-redundant-function-ptr-dereference,
29   readability-redundant-preprocessor,
30   readability-simplify-boolean-expr,
31   readability-simplify-subscript-expr,
32   readability-uniqueptr-delete-release,
34 CheckOptions:
35   - key:   readability-function-cognitive-complexity.Threshold
36     value: 143 # TODO: bring that number down
37   - key:   readability-function-size.LineThreshold
38     value: 194 # TODO: bring that number down
39   - key:   readability-identifier-naming.GetConfigPerFile
40     value: false
41   - key:   readability-identifier-naming.ParameterCase
42     value: lower_case
43   - key:   readability-identifier-naming.ParameterPrefix
44     value: __
45   - key:   readability-identifier-naming.PrivateMemberCase
46     value: lower_case
47   - key:   readability-identifier-naming.PrivateMemberPrefix
48     value: __
49   - key:   readability-identifier-naming.PrivateMemberSuffix
50     value: _
51   - key:   readability-identifier-naming.LocalVariableCase
52     value: lower_case
53   - key:   readability-identifier-naming.LocalVariablePrefix
54     value: __
55   - key:   readability-identifier-naming.TemplateParameterCase
56     value: CamelCase
57   - key:   readability-identifier-naming.TemplateParameterPrefix
58     value: _
59   - key:   readability-identifier-naming.TemplateParameterIgnoredRegexp
60     value: (.*\:auto|expr-type) # This is https://llvm.org/PR56464
61   - key:   readability-identifier-naming.ValueTemplateParameterCase
62     value: CamelCase
63   - key:   readability-identifier-naming.ValueTemplateParameterPrefix
64     value: _
65   - key:   readability-identifier-naming.ValueTemplateParameterIgnoredRegexp
66     value: (__[a-z_]|_[A-Z]).* # TODO: Converge on a single style for value template parameters
68 # TODO: investigate these checks
69 # bugprone-branch-clone,
70 # bugprone-macro-parentheses,
71 # cppcoreguidelines-prefer-member-initializer,
72 # misc-unused-parameters,
73 # modernize-use-bool-literals,
74 # modernize-use-default-member-init,
75 # modernize-use-equals-default,
76 # portability-restrict-system-includes,
77 # readability-function-cognitive-complexity,
78 # readability-implicit-bool-conversion,
79 # readability-isolate-declaration,
80 # readability-redundant-access-specifiers,
81 # readability-redundant-declaration,
82 # readability-redundant-member-init,