This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
/
.clang-tidy
46 lines (46 loc) · 1.87 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
---
Checks: '-*,
performance-*,
llvm-namespace-comment,
modernize-*,
readability-*,
bugprone-*
-clang-diagnostic-unused-command-line-argument,
'
WarningsAsErrors: '*'
HeaderFilterRegex: 'src/igvc-software/igvc_(navigation)/.*\.h'
AnalyzeTemporaryDtors: false
CheckOptions:
- key: llvm-namespace-comment.ShortNamespaceLines
value: '10'
- key: llvm-namespace-comment.SpacesBeforeComments
value: '2'
- key: readability-braces-around-statements.ShortStatementLines
value: '2'
# Type names are CamelCase
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
# Method names are camelBack
- key: readability-identifier-naming.MethodCase
value: camelBack
# Variable names snake_case
- key: readability-identifier-naming.VariableCase
value: lower_case
# Member variables are snake_case_
- key: readability-identifier-naming.ClassMemberSuffix
value: '_'
# Except for constexpr
- key: readability-identifier-naming.ConstexprVariableCase
value: lower_case
- key: readability-identifier-naming.ConstexprVariableSuffix
value: ''
# Gobal variables are g_lower_case
- key: readability-identifier-naming.GlobalVariableCase
value: lower_case
- key: readability-identifier-naming.GlobalVariablePrefix
value: 'g_'
...