Skip to content

Commit e3a1b11

Browse files
committed
Extend the clang-tidy config to make it more usable
Lots of warnings that we don't want are disabled now.
1 parent b7ca67c commit e3a1b11

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.clang-tidy

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,36 @@
11
---
2-
Checks: '*,-fuchsia-*'
2+
Checks: '*,-android-cloexec-*,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-cstyle-cast,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-vararg,-fuchsia-*,-google-readability-casting,-google-readability-todo,-hicpp-no-array-decay,-hicpp-vararg,-llvm-include-order,-modernize-make-unique,-readability-implicit-bool-conversion,-readability-named-parameter'
3+
#
4+
# cppcoreguidelines-pro-type-cstyle-cast
5+
# google-build-using-namespace
6+
# google-readability-casting
7+
# llvm-include-order
8+
# readability-named-parameter
9+
# Differ from our style guidelines
10+
#
11+
# android-cloexec-*
12+
# O_CLOEXEC isn't available on Windows
13+
#
14+
# cppcoreguidelines-owning-memory
15+
# cppcoreguidelines-pro-bounds-array-to-pointer-decay
16+
# cppcoreguidelines-pro-bounds-pointer-arithmetic
17+
# cppcoreguidelines-pro-type-static-cast-downcast
18+
# cppcoreguidelines-pro-type-vararg
19+
# hicpp-no-array-decay
20+
# hicpp-vararg
21+
# When you need them, you need them
22+
#
23+
# fuchsia-*
24+
# Very specific and way too strict
25+
#
26+
# google-readability-todo
27+
# We are not that organized
28+
#
29+
# modernize-make-unique
30+
# Not available in C++11
31+
#
32+
# readability-implicit-bool-conversion
33+
# Readability is a matter of opinion here
34+
#
335
#WarningsAsErrors: '*'
436
...

0 commit comments

Comments
 (0)