[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:13:45 PDT 2026


================
@@ -235,3 +235,38 @@ struct NoFixitInMacro {
     return;
   }
 };
+
+
+struct OverloadedMethods {
+  void f() {
+    this->i++;
+  }
+  void f() const {
+    ;
----------------
vbvictor wrote:

Thanks for the info. I see it now

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


More information about the cfe-commits mailing list