Skip to content

Commit 28e01f3

Browse files
authored
Add .clang-tidy (#2062)
We can add more checks later, but for now, this checks - If the styles for variables, functions, and classes match what we currently have - If bodies of if/for/while/do_while are inside braces - Some clang-tidy default checks that are related to possibly buggy code
1 parent ba8cade commit 28e01f3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.clang-tidy

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Checks: 'readability-braces-around-statements'
2+
CheckOptions:
3+
- key: readability-identifier-naming.ClassCase
4+
value: CamelCase
5+
- key: readability-identifier-naming.EnumCase
6+
value: CamelCase
7+
- key: readability-identifier-naming.EnumConstantCase
8+
value: CamelCase
9+
- key: readability-identifier-naming.FunctionCase
10+
value: camelBack
11+
- key: readability-identifier-naming.MemberCase
12+
value: camelBack
13+
- key: readability-identifier-naming.ParameterCase
14+
value: camelBack
15+
- key: readability-identifier-naming.VariableCase
16+
value: camelBack

0 commit comments

Comments
 (0)