-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.clang-tidy
executable file
·43 lines (35 loc) · 1.18 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
---
Checks: >
readability-*,
performance-*,
portability-*,
bugprone-*,
modernize-*,
clang-analyzer-*,
-readability-braces-around-statements,
-readability-identifier-length,
-readability-magic-numbers,
-readability-implicit-bool-conversion,
-readability-math-missing-parentheses,
-bugprone-reserved-identifier,
-bugprone-easily-swappable-parameters,
-readability-isolate-declaration,
-bugprone-sizeof-expression,
-modernize-use-nullptr,
# readability-braces-around-statements
# 我就是宏孩儿。
# readability-magic-numbers
# 典型的一刀切,反正 5 以上就是 namgic number 要写成常量。
# readability-implicit-bool-conversion
# 哥们别老是误报啊。
# if (a == 1 && b == 2) // a, b 为 int
# 这有啥错?
# readability-math-missing-parentheses
# 给 a * b + c 加上括号(?)
# bugprone-reserved-identifier
# 属于是逮着前缀下划线就报了。
# bugprone-easily-swappable-parameters
# 我一个函数传递几个连续的同类型参数怎么你了?
# 为啥要关 modernize-use-nullptr?因为他善。
# 哥们给我 C 代码报 warning 这 clang-tidy 咋写的?
FormatStyle: none