================
@@ -219,3 +219,20 @@ namespace PR33759 {
       static Number& getNumber();
   };
 }
+
+namespace PR54276 {
+
+  class PrivateDeletedFunctionWithPublicOverload {
+    public:
+      void foo() {}
+    private:
+      void foo(int) = delete;
+      // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: deleted member function 
should be public [modernize-use-equals-delete]
+  };
+
+  class PrivateDeletedFunctionWithPrivateOverload {
+    private:
+      void foo() {}
+      void foo(int) = delete;
+  };
+}
----------------
jwidauer wrote:

I had to adjust the `hasPublicOverload` matcher a tiny bit, so that it would 
also work for class member function template declarations as well, just FYI!

https://github.com/llvm/llvm-project/pull/182577
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to