================
@@ -16,5 +16,5 @@ void foo()
// RUN: c-index-test -code-completion-at=%s:14:8 %s -o - | FileCheck
-check-prefix=CHECK-CC1 %s
// CHECK-CC1: FieldDecl:{ResultType C<Foo, class Bar>}{TypedText c} (35)
// CHECK-CC1: ClassDecl:{TypedText Foo} (35)
-// CHECK-CC1: CXXMethod:{ResultType Foo &}{TypedText operator=}{LeftParen
(}{Placeholder const Foo &}{RightParen )}
-// CHECK-CC1: CXXDestructor:{ResultType void}{TypedText ~Foo}{LeftParen
(}{RightParen )} (80)
+// CHECK-CC1: CXXMethod:{ResultType Foo &}{TypedText operator=}{Informative
(}{Informative const Foo &}{Informative )} (80)
----------------
HighCommander4 wrote:
(I think in a situation like this it would be better to just omit the
completions for the copy constructor and destructor altogether, because it's
not valid to take their address... but that's a pre-existing issue. No change
needed in this patch.)
https://github.com/llvm/llvm-project/pull/165916
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits