================
@@ -20,3 +20,119 @@ struct Hello {
void UnnamedExplicitObjectParam(this Hello &) {}
};
+
+class BaseOverloadedAutoLambdaTest {
+public:
+ void BaseOverloadedMethod();
+ void BaseOverloadedMethod(int a) { };
+};
+
+
+class OverloadedAutoLambdaTest : public BaseOverloadedAutoLambdaTest {
+public:
+ void CallFunVar();
+ void LambdaUsesThis1(int a);
+ void LambdaUsesThis2(int a);
+ void LambdaUsesThis3(int a);
+ void LambdaUsesThis4();
+ void LambdaUsesThis5();
+
+ void LambdaNoThis1(int a);
+ void LambdaNoThis2(int a);
+ void LambdaNoThis3(int a);
+ void LambdaNoThis4(int a);
+ void LambdaNoThis5(int a);
+
+ void OverloadedMethod();
+ void OverloadedMethod(int a) { };
+
+ template <typename T>
+ void TemplatedOverloadedMethod(T);
+ void TemplatedOverloadedMethod(int);
+};
+
+void OverloadedAutoLambdaTest::CallFunVar() {
+ // CHECK-MESSAGES: :[[@LINE-1]]:32: warning: method 'CallFunVar' can be made
static [readability-convert-member-functions-to-static]
----------------
gxyd wrote:
Done, I've fixed this in the latest commit. Added `CHECK-FIXES` for all the
tests for which `CHECK-MESSAGES` was already added.
https://github.com/llvm/llvm-project/pull/191432
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits