-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
31 lines (26 loc) · 751 Bytes
/
.clang-tidy
File metadata and controls
31 lines (26 loc) · 751 Bytes
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
---
Checks: >
modernize-*,
performance-*,
cppcoreguidelines-*,
readability-*,
misc-*,
bugprone-*,
-modernize-use-trailing-return-type,
-cppcoreguidelines-pro-type-const-cast
# Treat warnings-as-errors for selected groups
WarningsAsErrors: >
modernize-*,
performance-*
FormatStyle: file
UseColor: true
CheckOptions:
# modernize-use-nullptr: replace 0/NULL with nullptr
- key: modernize-use-nullptr.NullMacros
value: 'NULL'
# performance-unnecessary-value-param: catch expensive-by-value parameters
- key: performance-unnecessary-value-param.AllowedTypes
value: 'std::string;std::vector'
# bugprone-use-after-move: catch use-after-move mistakes
- key: bugprone-use-after-move.WarnOnMacros
value: 1