forked from CoatiSoftware/Sourcetrail
-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy path.clang-tidy
More file actions
executable file
·92 lines (75 loc) · 2.5 KB
/
.clang-tidy
File metadata and controls
executable file
·92 lines (75 loc) · 2.5 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
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
# Note: tabs are not allowed!
---
Checks: >
-*,
#
# Enabled only for IDEs:
#
llvm-include-order,
readability-implicit-bool-conversion,
readability-make-member-function-const,
#
# Emits only warnings (no fixes):
#
bugprone-unused-local-non-trivial-variable,
#
# Always enabled:
#
bugprone-copy-constructor-init,
bugprone-shared-ptr-array-mismatch,
bugprone-standalone-empty,
bugprone-string-constructor,
bugprone-unique-ptr-array-mismatch,
misc-unused-parameters,
misc-unused-using-decls,
modernize-use-bool-literals,
modernize-use-nullptr,
modernize-use-override,
readability-convert-member-functions-to-static,
readability-delete-null-pointer,
readability-qualified-auto,
readability-redundant-string-cstr,
readability-redundant-string-init,
readability-simplify-boolean-expr,
#
# Check usefullness:
#
# cppcoreguidelines-pro-type-member-init,
# modernize-use-default-member-init,
# readability-redundant-member-init,
# readability-static-accessed-through-instance
#
# Problematic switches:
#
# bugprone-parent-virtual-call, # It is not clear whether the detected cases are intentional,
# misc-include-cleaner, # Breaks to many files and replaces the Qt header with lower level ones,
WarningsAsErrors: ''
HeaderFilterRegex: '.*'
FormatStyle: 'file'
CheckOptions:
- key: bugprone-string-constructor.StringNames
value: '::std::basic_string;::std::basic_string_view;QString'
- key: bugprone-unused-local-non-trivial-variable.IncludeTypes
value: '.*'
- key: bugprone-unused-local-non-trivial-variable.ExcludeTypes
value: '::std::lock_guard'
- key: cppcoreguidelines-pro-type-member-init.UseAssignment
value: '1'
- key: misc-unused-parameters.StrictMode
value: '1'
- key: modernize-use-bool-literals.IgnoreMacros
value: '0'
- key: modernize-use-equals-default.IgnoreMacros
value: '0'
- key: modernize-use-override.IgnoreDestructors
value: '0'
- key: modernize-use-default-member-init.UseAssignment
value: '1'
- key: modernize-use-default-member-init.IgnoreMacros
value: '0'
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
value: '1'
- key: readability-redundant-string-init.StringNames
value: '::std::basic_string;::std::basic_string_view;QString'
- key: readability-simplify-boolean-expr.SimplifyDeMorgan
value: '0'