-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-tidy
45 lines (41 loc) · 1.71 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
# Note #1: the full list of Clang-Tidy checks can be found at
# https://clang.llvm.org/extra/clang-tidy/checks/list.html...
# Note #2: performance-no-automatic-move shouldn't be disabled, but we have to
# due to an issue with Qt (see
# https://bugreports.qt.io/browse/QTBUG-85415)...
# Note #3: readability-redundant-access-specifiers shouldn't normally be
# disabled, but Clang-Tidy gets a bit confused with access specifiers
# like "public" vs. "public slots"...
# Note: if you make changes here, you may need to make changes in .clang-tidy
# files elsewhere in the tree; clang-tidy-10 doesn't allow selective
# inheritance of parent .clang-tidy files.
---
Checks: >-
-*,
clang-diagnostic-*,
llvm-*,
misc-*,
-misc-unused-parameters,
-misc-non-private-member-variables-in-classes,
-readability-identifier-naming
-readability-redundant-access-specifiers
# Note that the readability-identifier-naming check is disabled, there are too
# many violations in the codebase and they create too much noise in clang-tidy
# results.
# Naming settings are kept for documentation purposes and allowing to run the
# check if the users would override this file, e.g. via a command-line arg.
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.FunctionCase
value: camelBack
- key: readability-identifier-naming.MemberCase
value: CamelCase
- key: readability-identifier-naming.ParameterCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: CamelCase