[clang-tools-extra] [clang-tidy] New bugprone-method-hiding check (PR #154746)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 28 06:53:56 PDT 2025
================
@@ -0,0 +1,30 @@
+.. title:: clang-tidy - bugprone-method-hiding
+
+bugprone-method-hiding
+=========================
+
+Finds derived class methods that hide a (non-virtual) base class method.
+
+In order to be considered "hiding", methods must have the same signature
+(i.e. the same name, same number of parameters, same parameter types, etc).
+Only checks public, non-templated methods.
+
+The below example is bugprone because consumers of the `Derived` class will
----------------
t-a-james wrote:
Works fine today - no idea what was wrong yesterday. Anyway, I've just fixed the documentation build and checked that the text was rendered correctly.
https://github.com/llvm/llvm-project/pull/154746
More information about the cfe-commits
mailing list