[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 30 22:28:24 PDT 2025


================
@@ -4369,14 +4419,24 @@ TEST(CompletionTest, SkipExplicitObjectParameter) {
   Annotations Code(R"cpp(
     struct A {
       void foo(this auto&& self, int arg); 
+      void bar(this A self, int arg);
     };
 
     int main() {
       A a {};
-      a.^
+      a.$c1^;
+      (&A::fo$c2^;
+      (&A::ba$c3^;
     }
   )cpp");
 
+  // TODO: llvm/llvm-project/146649
+  // This is incorrect behavior. Correct Result should be a variant of,
+  // c2: signature = (A&& self, int arg)
+  //     snippet = (${1: A&& self}, ${2: int arg})
----------------
HighCommander4 wrote:

likewise here

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


More information about the cfe-commits mailing list