Skip to content

Commit b9e8788

Browse files
committed
Update clang-tidy config.
1 parent 7a0bea8 commit b9e8788

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed

.clang-tidy

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,38 @@
1616
# fixing all the non-iterator cases is useful though. Off by default.
1717
##
1818
Checks: >
19+
bugprone-*,
20+
-bugprone-branch-clone,
21+
-bugprone-easily-swappable-parameters,
22+
-bugprone-exception-escape,
23+
-bugprone-move-forwarding-reference,
24+
-bugprone-narrowing-conversions,
25+
-bugprone-reserved-identifier,
1926
clang-diagnostic-*,clang-analyzer-*,
2027
-clang-analyzer-core.NonNullParamChecker,
2128
-clang-analyzer-cplusplus.NewDeleteLeaks,
2229
-clang-analyzer-unix.Malloc,
2330
-clang-analyzer-valist.Uninitialized,
2431
-clang-diagnostic-unused-const-variable,
32+
google-*,
33+
-google-readability-avoid-underscore-in-googletest-name,
34+
-google-readability-braces-around-statements,
35+
-google-readability-casting,
36+
-google-readability-todo,
37+
modernize-use-override,
38+
misc-*,
39+
-misc-no-recursion,
40+
-misc-non-private-member-variables-in-classes,
41+
-misc-redundant-expression,
42+
-misc-unused-parameters,
43+
-misc-use-anonymous-namespace,
44+
performance-*,
2545
readability-*,
2646
-readability-braces-around-statements,
47+
-readability-convert-member-functions-to-static,
2748
-readability-else-after-return,
2849
-readability-function-cognitive-complexity,
50+
-readability-identifier-length,
2951
-readability-implicit-bool-conversion,
3052
-readability-isolate-declaration,
3153
-readability-magic-numbers,
@@ -35,26 +57,6 @@ Checks: >
3557
-readability-redundant-access-specifiers,
3658
-readability-uppercase-literal-suffix,
3759
-readability-use-anyofallof,
38-
-readability-convert-member-functions-to-static,
39-
google-*,
40-
-google-readability-avoid-underscore-in-googletest-name,
41-
-google-readability-braces-around-statements,
42-
-google-readability-todo,
43-
-google-readability-casting,
44-
performance-*,
45-
bugprone-*,
46-
-bugprone-branch-clone,
47-
-bugprone-easily-swappable-parameters,
48-
-bugprone-exception-escape,
49-
-bugprone-move-forwarding-reference,
50-
-bugprone-narrowing-conversions,
51-
-bugprone-reserved-identifier,
52-
modernize-use-override,
53-
misc-*,
54-
-misc-no-recursion,
55-
-misc-non-private-member-variables-in-classes,
56-
-misc-redundant-expression,
57-
-misc-unused-parameters,
5860
5961
WarningsAsErrors: ''
6062
HeaderFilterRegex: ''

shell.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This is a nix-shell for use with the nix package manager.
2-
# If you have nix installed, you may simply run `nix-shell`
3-
# in this repo, and have all dependencies ready in the new shell.
4-
51
{ pkgs ? import <nixpkgs> {} }:
62
pkgs.mkShell {
73
buildInputs = with pkgs;
@@ -14,7 +10,7 @@ pkgs.mkShell {
1410
gtest
1511
valgrind
1612
ghostscript
17-
clang-tools_15
13+
clang-tools_19
1814
graphviz
1915
];
2016
shellHook =

0 commit comments

Comments
 (0)