-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.clang-tidy
More file actions
37 lines (37 loc) · 1.63 KB
/
.clang-tidy
File metadata and controls
37 lines (37 loc) · 1.63 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
# ================
# DISABLED CHECKS AND WHY
# ================
# readability-braces-around-statement: We allow `if` with no braces.
# readability-identifier-length: We do a lot of algorithm stuffs, and single letter variables are common.
# readability-implicit-bool-conversion: Explicity comparing against nullptr isn't really helpful.
# google-readability-todo: We do not like (or require) TODO attribution.
# google-readability-casting: The compiler is smarter than me.
# fuchsia-trailing-return: Opposite of modernize-use-trailing-return.
# fuchsia-default-argument: Disallowing default arguments entirely is dumb.
# fuchsia-overloaded-operator: Disallowing operator overloading entirely is dumb.
# fuchsia-statically-constructed-objects: Disallowing static objects entirely is dumb.
# bugprone-easily-swappable-parameters: What the hell do you want me to do about it?
# misc-non-private-member-variables-in-classes: Structs with helpers exist, among other things.
# misc-no-recursion: Recursive descent parsers, tree structures, etc. all lend themselves to recursion.
# cppcoreguidelines-avoid-do-while: No!
Checks: <
*
clang-analyzer*
clang-diagnostic*
-*braces-around-statement*
-*identifier-length*
-*implicit-bool-conversion*
-bugprone-easily-swappable-parameters
-llvm*
-altera*
-android*
-google-readability-todo
-google-readability-casting
-fuchsia-trailing-return
-fuchsia-default-argument*
-fuchsia-overloaded-operator
-fuchsia-statically-constructed-objects
-*non-private-member-variables-in-classes
-misc-no-recursion
-*avoid-do-while*
-cppcoreguidelines-owning-memory