forked from qir-alliance/qat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
103 lines (94 loc) · 3.02 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
Checks: "-*,bugprone-*,\
-bugprone-easily-swappable-parameters,\
-readability-*,\
readability-identifier-*,\
readability-redundant-member-init,\
readability-braces-around-statements,\
cert-dcl*,\
cert-env*,\
cert-err52-cpp,\
cert-err60-cpp,\
cert-flp30-c,\
clang-analyzer-*,\
clang-analyzer-security.FloatLoopCounter,\
google-build-explicit-make-pair,\
google-build-namespaces,\
google-explicit-constructor,\
google-readability-*,\
google-runtime-operator,\
hicpp-exception-baseclass,\
hicpp-explicit-conversions,\
hicpp-use-*,\
modernize-avoid-bind,\
modernize-loop-convert,\
modernize-make-shared,\
modernize-make-unique,\
modernize-redundant-void-arg,\
modernize-replace-random-shuffle,\
modernize-shrink-to-fit,\
modernize-use-bool-literals,\
modernize-use-default-member-init,\
modernize-use-emplace,\
modernize-use-equals-default,\
modernize-use-equals-delete,\
modernize-use-noexcept,\
modernize-use-nullptr,\
modernize-use-override,\
modernize-use-transparent-functors,\
misc-*,\
-misc-no-recursion,\
performance-*"
WarningsAsErrors: "*"
HeaderFilterRegex: \./qir/qat/.+
CheckOptions:
# Configuration documentation: https://clang.llvm.org/extra/clang-tidy/checks/readability-identifier-naming.html
# Namespaces
- key: readability-identifier-naming.NamespaceCase
value: "lower_case"
# Classes and structs
- key: readability-identifier-naming.AbstractClassPrefix
value: "I"
- key: readability-identifier-naming.ClassCase
value: "CamelCase"
- key: readability-identifier-naming.StructCase
value: "CamelCase"
- key: readability-identifier-naming.UnionCase
value: "CamelCase"
# Class members
- key: readability-identifier-naming.PrivateMemberCase
value: "lower_case"
- key: readability-identifier-naming.PrivateMemberSuffix
value: "_"
- key: readability-identifier-naming.ProtectedMemberCase
value: "lower_case"
- key: readability-identifier-naming.ProtectedMemberSuffix
value: "_"
# Type Alias and Enum Types / constants
- key: readability-identifier-naming.TypeAliasCase
value: "CamelCase"
- key: readability-identifier-naming.TypedefCase
value: "CamelCase"
- key: readability-identifier-naming.EnumCase
value: "CamelCase"
- key: readability-identifier-naming.EnumConstantCase
value: "CamelCase"
# Globals, consts and enums
- key: readability-identifier-naming.ConstantCase
value: "UPPER_CASE"
- key: readability-identifier-naming.GlobalConstantCase
value: "UPPER_CASE"
# Functions
- key: readability-identifier-naming.FunctionCase
value: "camelBack"
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: true
# Variables and parameters
- key: readability-identifier-naming.VariableCase
value: "lower_case"
- key: readability-identifier-naming.LocalVariableCase
value: "lower_case"
- key: readability-identifier-naming.ParameterCase
value: "lower_case"
# Macros
- key: readability-identifier-naming.MacroDefinitionCase
value: "UPPER_CASE"