-
Notifications
You must be signed in to change notification settings - Fork 8
/
.clang-tidy
70 lines (69 loc) · 2.57 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
# Part of the uprocotol project, under the Apache License v2.0
# See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0
---
# - modernize-use-nodiscard is disabled because it only fixes const methods,
# not non-const, which yields distracting results on accessors.
# - performance-unnecessary-value-param is disabled because it duplicate
# modernize-pass-by-value.
Checks: >
-*,
bugprone-*,
#-bugprone-easily-swappable-parameters,
#-bugprone-narrowing-conversions,
cert-*,
-cert-msc50-cpp,
-cert-msc51-cpp,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-special-member-functions,
-cppcoreguidelines-pro-type-reinterpret-cast,
google-*,
#-google-readability-todo,
#-google-runtime-int,
llvm-header-guard,
hicpp-exception-baseclass,
hicpp-no-assembler,
misc-confusable-identifiers,
misc-const-correctness,
misc-definitions-in-headers,
misc-header-include-cycle,
misc-include-cleaner,
misc-misplaced-const,
misc-non-private-member-variables-in-classes,
misc-redundant-expression,
misc-static-assert,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
misc-unused-*,
misc-use-anonymous-namespace,
modernize-*,
-modernize-use-trailing-return-type,
performance-*,
-performance-avoid-endl,
portability-*,
-portability-restrict-system-includes,
readability-*,
#-readability-convert-member-functions-to-static,
-readability-identifier-length,
-readability-suspicious-call-argument,
WarningsAsErrors: true
CheckOptions:
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- {
key: readability-identifier-naming.ConstexprVariableCase,
value: UPPER_CASE,
}
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { 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.TypedefCase, value: CamelCase }
- { key: readability-identifier-naming.UnionCase, value: CamelCase }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.ParameterCase, value: lower_case }
- { key: readability-identifier-naming.ClassMemberCase, value: lower_case }
- { key: readability-identifier-naming.ClassMemberSuffix, value: _ }