From 0de55cecb2797335db1c479d15aca13b9e32a7cd Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 25 Aug 2010 18:41:16 +0000 Subject: When combining the code-completion results from Sema long with the code-completion results cached by ASTUnit, sort the resulting result set. This makes testing far, far easier, so this commit also includes tests for the previous few fixes. llvm-svn: 112070 --- clang/test/Index/complete-preprocessor.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/Index/complete-preprocessor.m') diff --git a/clang/test/Index/complete-preprocessor.m b/clang/test/Index/complete-preprocessor.m index 6ca7214fa2e..1873dad6f35 100644 --- a/clang/test/Index/complete-preprocessor.m +++ b/clang/test/Index/complete-preprocessor.m @@ -71,3 +71,10 @@ FOO(in,t) value; // CHECK-CC5: NotImplemented:{TypedText inline} (30) // CHECK-CC5: NotImplemented:{TypedText int} (65) // CHECK-CC5: NotImplemented:{TypedText long} (65) + +// Same tests as above, but with completion caching. +// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:4:2 %s | FileCheck -check-prefix=CHECK-CC1 %s +// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:5:2 %s | FileCheck -check-prefix=CHECK-CC2 %s +// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:9:8 %s | FileCheck -check-prefix=CHECK-CC3 %s +// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:11:5 %s | FileCheck -check-prefix=CHECK-CC4 %s +// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:14:5 %s | FileCheck -check-prefix=CHECK-CC5 %s -- cgit v1.2.3