Skip to content

Commit 2842e3a

Browse files
committed
Add clang-tidy file
1 parent ec914d7 commit 2842e3a

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.clang-tidy

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Apply to ALL headers (empty = no restriction)
2+
HeaderFilterRegex: '.*'
3+
4+
# Treat warnings as errors (optional but recommended for CI)
5+
# WarningsAsErrors: '*'
6+
WarningsAsErrors: ''
7+
8+
Checks: >
9+
-*,
10+
clang-diagnostic-*,
11+
modernize-*,
12+
-modernize-use-trailing-return-type,
13+
-modernize-use-auto,
14+
cppcoreguidelines-*,
15+
-cppcoreguidelines-owning-memory,
16+
-cppcoreguidelines-pro-type-vararg,
17+
-cppcoreguidelines-avoid-magic-numbers,
18+
bugprone-*,
19+
performance-*,
20+
readability-*,
21+
-readability-magic-numbers,
22+
-readability-identifier-length,
23+
misc-*,
24+
-misc-unused-parameters
25+
26+
CheckOptions:
27+
- key: readability-identifier-naming.NamespaceCase
28+
value: lower_case
29+
30+
- key: readability-identifier-naming.ClassCase
31+
value: CamelCase
32+
33+
- key: readability-identifier-naming.StructCase
34+
value: CamelCase
35+
36+
- key: readability-identifier-naming.FunctionCase
37+
value: lower_case
38+
39+
- key: readability-identifier-naming.VariableCase
40+
value: lower_case
41+
42+
- key: readability-identifier-naming.MemberCase
43+
value: lower_case_
44+
45+
- key: modernize-use-nullptr.NullMacros
46+
value: 'NULL'

0 commit comments

Comments
 (0)