[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 29 00:38:14 PDT 2025


================
@@ -153,6 +154,8 @@ class BugproneModule : public ClangTidyModule {
         "bugprone-incorrect-enable-if");
     CheckFactories.registerCheck<IncorrectEnableSharedFromThisCheck>(
         "bugprone-incorrect-enable-shared-from-this");
+    CheckFactories.registerCheck<DerivedMethodShadowingBaseMethodCheck>(
+        "bugprone-derived-method-shadowing-base-method");
----------------
localspook wrote:

Because the check was renamed, this should be moved up to preserve alphabetical order.

https://github.com/llvm/llvm-project/pull/154746


More information about the cfe-commits mailing list