Skip to content

Commit 9c8d282

Browse files
authored
Merge pull request #1514 from joto/clang-tidy-config
Various updates to clang-tidy config
2 parents b1a634a + 8d7bf87 commit 9c8d282

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.clang-tidy

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
Checks: '*,-android-cloexec-*,-cppcoreguidelines-avoid-magic-numbers,-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-named-parameter,-hicpp-no-array-decay,-hicpp-vararg,-llvm-include-order,-llvm-header-guard,-llvmlibc-*,-misc-no-recursion,-modernize-make-unique,-modernize-use-trailing-return-type,-readability-implicit-bool-conversion,-readability-named-parameter,-readability-magic-numbers'
2+
Checks: '*,-android-cloexec-*,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-avoid-non-const-global-variables,-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-named-parameter,-hicpp-no-array-decay,-hicpp-vararg,-llvm-include-order,-llvm-header-guard,-llvmlibc-*,-misc-no-recursion,-modernize-use-trailing-return-type,-readability-implicit-bool-conversion,-readability-named-parameter,-readability-magic-numbers'
33
#
44
# cppcoreguidelines-pro-type-cstyle-cast
55
# google-build-using-namespace
66
# google-readability-casting
7+
# llvm-header-guard
78
# llvm-include-order
89
# hicpp-named-parameter
910
# readability-named-parameter
@@ -18,6 +19,11 @@ Checks: '*,-android-cloexec-*,-cppcoreguidelines-avoid-magic-numbers,-cppcoregui
1819
# it for the time being because with it we can't see the forest for the
1920
# trees. (TODO)
2021
#
22+
# cppcoreguidelines-avoid-non-const-global-variables
23+
# Not wrong to avoid those, but we have a few that are hard to avoid.
24+
# Also this warning is triggered many times by constructs in the Catch test
25+
# framework.
26+
#
2127
# cppcoreguidelines-owning-memory
2228
# cppcoreguidelines-pro-bounds-array-to-pointer-decay
2329
# cppcoreguidelines-pro-bounds-pointer-arithmetic
@@ -33,18 +39,12 @@ Checks: '*,-android-cloexec-*,-cppcoreguidelines-avoid-magic-numbers,-cppcoregui
3339
# google-readability-todo
3440
# We are not that organized
3541
#
36-
# llvm-header-guard
37-
# Not our style
38-
#
3942
# llvmlibc-*
4043
# Not applicable
4144
#
4245
# misc-no-recursion
4346
# Nothing wrong with recursion
4447
#
45-
# modernize-make-unique
46-
# Not available in C++11
47-
#
4848
# modernize-use-trailing-return-type
4949
# We are not that modern...
5050
#
@@ -58,4 +58,8 @@ CheckOptions:
5858
value: true
5959
- key: hicpp-special-member-functions.AllowSoleDefaultDtor
6060
value: true
61+
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
62+
value: true
63+
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
64+
value: true
6165
...

0 commit comments

Comments
 (0)