@@ -26,14 +26,12 @@ Checks: '
26
26
performance-*,
27
27
portability-*,
28
28
readability-*,
29
- -bugprone-branch-clone,
30
29
-bugprone-easily-swappable-parameters,
31
30
-bugprone-implicit-widening-of-multiplication-result,
32
31
-bugprone-narrowing-conversions,
33
32
-bugprone-reserved-identifier,
34
33
-bugprone-signed-char-misuse,
35
34
-bugprone-suspicious-include,
36
- -bugprone-too-small-loop-variable,
37
35
-bugprone-unhandled-self-assignment,
38
36
-clang-analyzer-cplusplus.NewDelete,
39
37
-clang-analyzer-cplusplus.NewDeleteLeaks,
@@ -73,8 +71,14 @@ AnalyzeTemporaryDtors: true
73
71
# we hide the reference implementation in another repository.
74
72
# -modernize-use-trailing-return-type,
75
73
# At the time of writing (8/22), all of the core BusTub code is in compliance with this. This check only fails
76
- # because some GTest file that is generated at build time. There should be a workaround...?
77
- # (The file's name is gmock_main.cc).
74
+ # because some GTest file (gmock_main.cc) that is generated at build time. There should be a workaround...?
75
+ # -clang-analyzer-security.insecureAPI.rand, -clang-analyzer-security.insecureAPI.rand, -bugprone-unhandled-self-assignment,
76
+ # -bugprone-implicit-widening-of-multiplication-result
77
+ # These have not been investigated yet.
78
+ # -bugprone-reserved-identifier,
79
+ # Fails due to use of some __SHORT_FILE__ symbol, originating from very old code.
80
+ # -bugprone-suspicious-include,
81
+ # False positive due to GTest code.
78
82
# -bugprone-too-small-loop-variable,
79
83
# Complains about uint8_t or uint16_t when the limit on the loop is a container's .size() (size_t).
80
84
# We usually do this when we know the maximum size of the container though, so propose leaving disabled.
@@ -88,8 +92,7 @@ AnalyzeTemporaryDtors: true
88
92
# We use C-style arrays in page.h, type.h and logger.h. They're a little more ergonomic than std::array. Thoughts?
89
93
# -readability-magic-numbers,
90
94
# Let's not deal with people doing ridiculous things to hack around this. If it bites them, it bites them.
91
- # -bugprone-branch-clone, -bugprone-signed-char-misuse, -bugprone-unhandled-self-assignment,
92
- # -clang-diagnostic-implicit-int-float-conversion, -modernize-use-auto, -modernize-use-trailing-return-type,
93
- # -readability-convert-member-functions-to-static, -readability-make-member-function-const, -readability-qualified-auto,
94
- # -readability-redundant-access-specifiers
95
- # Not available on clang-8. Disable for forward compatibility with students running modern clang versions.
95
+ # -bugprone-signed-char-misuse, -clang-diagnostic-implicit-int-float-conversion, -readability-make-member-function-const,
96
+ # -readability-qualified-auto, -readability-redundant-access-specifiers
97
+ # These were previously disabled for not being available in clang-tidy-8. They are now available on our clang-tidy-12,
98
+ # and potentially worth investigating/fixing.
0 commit comments