summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/complete-preprocessor.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-25 18:41:16 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-25 18:41:16 +0000
commit0de55cecb2797335db1c479d15aca13b9e32a7cd (patch)
tree00e1d719cbe12f86bed22ea45fa2ba2260e5f120 /clang/test/Index/complete-preprocessor.m
parent74328ab826d0d7e2c842c3bf7f051597d29c012b (diff)
downloadbcm5719-llvm-0de55cecb2797335db1c479d15aca13b9e32a7cd.tar.gz
bcm5719-llvm-0de55cecb2797335db1c479d15aca13b9e32a7cd.zip
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
Diffstat (limited to 'clang/test/Index/complete-preprocessor.m')
-rw-r--r--clang/test/Index/complete-preprocessor.m7
1 files changed, 7 insertions, 0 deletions
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
OpenPOWER on IntegriCloud