-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.clang-tidy
More file actions
65 lines (64 loc) · 2.64 KB
/
Copy path.clang-tidy
File metadata and controls
65 lines (64 loc) · 2.64 KB
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
# clang-analyzer-cplusplus.NewDeleteLeaks triggers false-positives in QObject::connect()
# readability-redundant-access-specifiers triggered by Q_SLOTS
# readability-inconsistent-declaration-parameter-name trigered by generated Qt code
# performance-no-automatic-move is triggered by constness of qstring_literal_tmp in QStringLiteral macro
#
# TODO make those pass:
# readability-function-size - for now some tests and the generated code contains extremely long
# functions, which should be split into smaller functions
Checks: -*,
bugprone-*,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-narrowing-conversions,
-bugprone-suspicious-include,
clang-analyzer-*,
-clang-analyzer-apiModeling.*,
-clang-analyzer-optin.osx.*,
-clang-analyzer-optin.cplusplus.VirtualCall,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-analyzer-webkit.*,
-google-*,
misc-*,
-misc-definitions-in-headers,
-misc-include-cleaner,
-misc-no-recursion,
-misc-use-anonymous-namespace,
-*-non-private-member-variables-in-classes,
performance-*,
-performance-enum-size,
-performance-no-automatic-move,
readability-*,
-readability-avoid-const-params-in-decls,
-readability-avoid-nested-conditional-operator,
-readability-convert-member-functions-to-static,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-function-size,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-readability-make-member-function-const,
-readability-math-missing-parentheses,
-readability-named-parameter,
-readability-qualified-auto,
-readability-redundant-casting,
-readability-simplify-boolean-expr,
-readability-static-accessed-through-instance,
-readability-use-std-min-max,
-readability-use-anyofallof,
CheckOptions:
- key: bugprone-assert-side-effects.AssertMacros
value: 'Q_ASSERT;QVERIFY;QCOMPARE;AKVERIFY'
- key: CheckFunctionCalls
value: true
- key: StringCompareLikeFunctions
value: 'QString::compare;QString::localeAwareCompare'
- key: WarnOnSizeOfIntegerExpression
value: 1
- key: bugprone-dangling-handle.HandleClasses
value: 'std::string_view;QStringView'
- key: IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: VectorLikeClasses
value: 'std::vector;QList'