[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
Mon Apr 13 07:50:12 PDT 2026
================
@@ -235,3 +235,38 @@ struct NoFixitInMacro {
return;
}
};
+
+
+struct OverloadedMethods {
+ void f() {
+ this->i++;
+ }
+ void f() const {
+ ;
----------------
vbvictor wrote:
Omit this, it doesn't add value to function
https://github.com/llvm/llvm-project/pull/191712
More information about the cfe-commits
mailing list