Skip to content

Commit 4dd494e

Browse files
committed
.clang-tidy: temporarily disable misc-const-correctness
This is a relatively new check added to clang-tidy by 46ae26e7eb70 ("[clang-tidy] implement new check 'misc-const-correctness' to add 'const' to unmodified variables", 2022-07-24). Currently the code base doesn't follow the practice of declaring variables `const` where possible, which makes the check quite noisy, so disable it for now.
1 parent 75d16c2 commit 4dd494e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.clang-tidy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Checks: |
44
llvm-*,
55
-llvm-header-guard,
66
misc-*,
7+
-misc-const-correctness,
78
-misc-no-recursion,
89
-misc-non-private-member-variables-in-classes,
910
-misc-unused-parameters,
@@ -12,6 +13,7 @@ WarningsAsErrors: |
1213
llvm-*,
1314
-llvm-header-guard,
1415
misc-*,
16+
-misc-const-correctness,
1517
-misc-no-recursion,
1618
-misc-non-private-member-variables-in-classes,
1719
-misc-unused-parameters,

0 commit comments

Comments
 (0)