[workflows] Fix version-check.yml to work with the new minor release bump
[llvm-project.git] / libcxx / .clang-tidy
blobec7cab9b878ed9efa746fb1c042aa76d97ef32e4
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,
21   readability-duplicate-include,
22   readability-identifier-naming,
23   readability-function-cognitive-complexity,
24   readability-function-size,
25   readability-misplaced-array-index,
26   readability-redundant-control-flow,
27   readability-redundant-function-ptr-dereference,
28   readability-redundant-preprocessor,
29   readability-simplify-boolean-expr,
30   readability-simplify-subscript-expr,
31   readability-uniqueptr-delete-release,
33 CheckOptions:
34   - key:   readability-function-cognitive-complexity.Threshold
35     value: 143 # TODO: bring that number down
36   - key:   readability-function-size.LineThreshold
37     value: 194 # TODO: bring that number down
38   - key:   readability-identifier-naming.GetConfigPerFile
39     value: false
40   - key:   readability-identifier-naming.ParameterCase
41     value: lower_case
42   - key:   readability-identifier-naming.ParameterPrefix
43     value: __
44   - key:   readability-identifier-naming.PrivateMemberCase
45     value: lower_case
46   - key:   readability-identifier-naming.PrivateMemberPrefix
47     value: __
48   - key:   readability-identifier-naming.PrivateMemberSuffix
49     value: _
50   - key:   readability-identifier-naming.LocalVariableCase
51     value: lower_case
52   - key:   readability-identifier-naming.LocalVariablePrefix
53     value: __
54   - key:   readability-identifier-naming.TemplateParameterCase
55     value: CamelCase
56   - key:   readability-identifier-naming.TemplateParameterPrefix
57     value: _
58   - key:   readability-identifier-naming.TemplateParameterIgnoredRegexp
59     value: (.*\:auto|expr-type) # This is https://llvm.org/PR56464
60   - key:   readability-identifier-naming.ValueTemplateParameterIgnoredRegexp # TODO: enforce naming of variable parameters
61     value: .*
63 # TODO: investigate these checks
64 # bugprone-branch-clone,
65 # bugprone-macro-parentheses,
66 # cppcoreguidelines-prefer-member-initializer,
67 # misc-unused-parameters,
68 # modernize-use-bool-literals,
69 # modernize-use-default-member-init,
70 # modernize-use-equals-default,
71 # modernize-use-equals-delete,
72 # portability-restrict-system-includes,
73 # readability-function-cognitive-complexity,
74 # readability-implicit-bool-conversion,
75 # readability-isolate-declaration,
76 # readability-redundant-access-specifiers,
77 # readability-redundant-declaration,
78 # readability-redundant-member-init,