-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-tidy
104 lines (98 loc) · 6.39 KB
/
.clang-tidy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
# Disabled:
# '-llvm-header-guard' doesn't work with '#pragma once'
# '-misc-include-cleaner' doesn't work with C++ modules
# '-misc-use-internal-linkage' doesn't work with C++ modules
# '-readability-redundant-declaration' broken with '/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/new:135:6'
# '-modernize-pass-by-value' don't quite like it yet
Checks: >
-*,
abseil-*,
bugprone-*,
cert-*,
clang-diagnostic-*,
clang-analyzer-*,
concurrency-*,
cppcoreguidelines-*,
google-*,
hicpp-*,
llvm-*,
misc-*,
modernize-*,
mpi-*
openmp-*,
performance-*,
portability-*,
readability-*,
zircon-*,
-llvm-header-guard,
-misc-include-cleaner,
-misc-use-internal-linkage,
-modernize-pass-by-value,
-readability-redundant-declaration,
-abseil-string-find-str-contains,
-cert-dcl58-cpp
# Turn all the warnings from the checks above into errors.
WarningsAsErrors: '*'
HeaderFilterRegex: ''
FormatStyle: none
CheckOptions:
- { key: readability-inconsistent-declaration-parameter-name.Strict, value: 'true' }
- { key: readability-identifier-naming.AbstractClassCase, value: CamelCase }
- { key: readability-identifier-naming.AbstractClassPrefix, value: 'I' }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.ConstexprVariableCase, value: UPPER_CASE }
- { key: readability-identifier-naming.ConstexprVariablePrefix, value: '' }
- { key: readability-identifier-naming.ConstexprVariableIgnoredRegexp, value: 'pi|PI' }
- { key: readability-identifier-naming.ConstexprFunctionIgnoredRegexp, value: 'lerp' }
- { key: readability-identifier-naming.ConstantMemberCase, value: camelBack }
- { key: readability-identifier-naming.ConstantMemberPrefix, value: 'm_' }
- { key: readability-identifier-naming.EnumConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.EnumConstantPrefix, value: '' }
- { key: readability-identifier-naming.FunctionCase, value: CamelCase }
- { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.GlobalConstantPrefix, value: '' }
- { key: readability-identifier-naming.GlobalFunctionCase, value: CamelCase }
- { key: readability-identifier-naming.GlobalFunctionIgnoredRegexp, value: 'lerp' }
- { key: readability-identifier-length.MinimumVariableNameLength, value: 3 }
- { key: readability-identifier-length.IgnoredVariableNames, value: 'W|a|b|c|d|t|x.*|X.*|y.*|Y.*|z.*|Z.*|u.*|v.*|i.*|j.*|k.*|m.*|n.*|N.*' }
- { key: readability-identifier-length.MinimumParameterNameLength, value: 3 }
- { key: readability-identifier-length.IgnoredParameterNames, value: 'a|b|t|x.*|y.*|z.*|i|m|n|k.*' }
- { key: readability-identifier-length.MinimumLoopCounterNameLength, value: 3 }
- { key: readability-identifier-length.IgnoredLoopCounterNames, value: 'x|y|i|j|k' }
- { key: readability-identifier-naming.FunctionIgnoredRegexp, value: 'lerp|at' }
- { key: readability-identifier-naming.LocalConstantCase, value: camelBack }
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
- { key: readability-identifier-naming.MethodCase, value: CamelCase }
- { key: readability-identifier-naming.NamespaceCase, value: UPPER_CASE }
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
- { key: readability-identifier-naming.PrivateMemberPrefix, value: 'm_' }
- { key: readability-identifier-naming.ProtectedMemberPrefix, value: 'm_' }
- { key: readability-identifier-naming.PublicMemberPrefix, value: '' }
- { key: readability-identifier-naming.ScopedEnumConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.ScopedEnumConstantPrefix, value: '' }
- { key: readability-identifier-naming.StaticConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.StaticConstantPrefix, value: 's_' }
- { key: readability-identifier-naming.StaticVariableCase, value: camelBack }
- { key: readability-identifier-naming.StaticVariablePrefix, value: 's_' }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
- { key: readability-identifier-naming.TypeAliasCase, value: CamelCase }
- { key: readability-identifier-naming.UnionCase, value: CamelCase }
- { key: readability-identifier-naming.VariableCase, value: camelBack }
- { key: readability-identifier-naming.VirtualMethodCase, value: CamelCase }
- { key: readability-implicit-bool-conversion.AllowIntegerConditions, value: '1' }
- { key: readability-implicit-bool-conversion.AllowPointerConditions, value: '1' }
- { key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField, value: '0' }
- { key: google-readability-braces-around-statements.ShortStatementLines, value: '1' }
- { key: google-readability-function-size.StatementThreshold, value: '800' }
- { key: google-readability-namespace-comments.ShortNamespaceLines, value: '10' }
- { key: llvm-namespace-comment.ShortNamespaceLines, value: '10' }
- { key: google-readability-namespace-comments.SpacesBeforeComments, value: '1' }
- { key: llvm-namespace-comment.SpacesBeforeComments, value: '1' }
- { key: modernize-loop-convert.MaxCopySize, value: '16' }
- { key: modernize-loop-convert.MinConfidence, value: reasonable }
- { key: modernize-loop-convert.NamingStyle, value: CamelCase }
- { key: modernize-pass-by-value.IncludeStyle, value: llvm }
- { key: modernize-replace-auto-ptr.IncludeStyle, value: llvm }
- { key: misc-include-cleaner.IgnoreHeaders, value: 'GL/.*;vivid/.*;goom_config\.h' }