@@ -26,14 +26,12 @@ Checks: '
2626 performance-*,
2727 portability-*,
2828 readability-*,
29- -bugprone-branch-clone,
3029 -bugprone-easily-swappable-parameters,
3130 -bugprone-implicit-widening-of-multiplication-result,
3231 -bugprone-narrowing-conversions,
3332 -bugprone-reserved-identifier,
3433 -bugprone-signed-char-misuse,
3534 -bugprone-suspicious-include,
36- -bugprone-too-small-loop-variable,
3735 -bugprone-unhandled-self-assignment,
3836 -clang-analyzer-cplusplus.NewDelete,
3937 -clang-analyzer-cplusplus.NewDeleteLeaks,
@@ -73,8 +71,14 @@ AnalyzeTemporaryDtors: true
7371# we hide the reference implementation in another repository.
7472# -modernize-use-trailing-return-type,
7573# 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.
7882# -bugprone-too-small-loop-variable,
7983# Complains about uint8_t or uint16_t when the limit on the loop is a container's .size() (size_t).
8084# We usually do this when we know the maximum size of the container though, so propose leaving disabled.
@@ -88,8 +92,7 @@ AnalyzeTemporaryDtors: true
8892# We use C-style arrays in page.h, type.h and logger.h. They're a little more ergonomic than std::array. Thoughts?
8993# -readability-magic-numbers,
9094# 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