[clang-tools-extra] [clang-tidy] Fix false positive in readability-convert-member-functions-to-static for const overloads (PR #191712)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 18 06:09:50 PDT 2026
================
@@ -235,3 +235,24 @@ struct NoFixitInMacro {
return;
}
};
+
+
+struct OverloadedMethods {
+ void f() { this->i++; }
+ void f() const { ; }; // `;` is necessary to ensure non trivial body
----------------
vbvictor wrote:
Please add test when method is defined out of class
https://github.com/llvm/llvm-project/pull/191712
More information about the cfe-commits
mailing list