[cfe-commits] r142472 - /cfe/trunk/test/Index/complete-exprs.cpp

Douglas Gregor dgregor at apple.com
Tue Oct 18 21:17:22 PDT 2011


Author: dgregor
Date: Tue Oct 18 23:17:22 2011
New Revision: 142472

URL: http://llvm.org/viewvc/llvm-project?rev=142472&view=rev
Log:
Tweak this test to test more directly what we want, and hopefully work around the brokenness of code completion under -fdelayed-template-parsing

Modified:
    cfe/trunk/test/Index/complete-exprs.cpp

Modified: cfe/trunk/test/Index/complete-exprs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/complete-exprs.cpp?rev=142472&r1=142471&r2=142472&view=diff
==============================================================================
--- cfe/trunk/test/Index/complete-exprs.cpp (original)
+++ cfe/trunk/test/Index/complete-exprs.cpp Tue Oct 18 23:17:22 2011
@@ -26,6 +26,14 @@
   vector<int>(foo(), foo());
 }
 
+struct X {
+  void f() const;
+};
+
+void X::f() const {
+
+}
+
 // RUN: c-index-test -code-completion-at=%s:20:2 %s -std=c++0x | FileCheck -check-prefix=CHECK-CC1 %s
 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:20:2 -std=c++0x %s | FileCheck -check-prefix=CHECK-CC1 %s
 // CHECK-CC1: NotImplemented:{ResultType size_t}{TypedText alignof}{LeftParen (}{Placeholder type}{RightParen )} (40)
@@ -55,5 +63,5 @@
 // CHECK-CC3: CXXConstructor:{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >}{LeftParen (}{Placeholder const T &}{Comma , }{Placeholder unsigned int n}{RightParen )} (50)
 // CHECK-CC3: FunctionTemplate:{ResultType void}{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >}{LeftParen (}{Placeholder InputIterator first}{Comma , }{Placeholder InputIterator last}{RightParen )} (50)
 
-// RUN: c-index-test -code-completion-at=%s:18:59 %s -std=c++0x | FileCheck -check-prefix=CHECK-CC4 %s
-// CHECK-CC4: NotImplemented:{ResultType vector<T> *}{TypedText this} (40)
+// RUN: c-index-test -code-completion-at=%s:34:1 %s -std=c++0x | FileCheck -check-prefix=CHECK-CC4 %s
+// CHECK-CC4: NotImplemented:{ResultType const X *}{TypedText this} (40)





More information about the cfe-commits mailing list