summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-03 02:20:25 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-03 02:20:25 +0000
commitcb373e3f31b945738d134c3d1cb93ee666996c03 (patch)
treeafe3e116b8e125233e2e1721183fb7440976099b /clang/tools/c-index-test/c-index-test.c
parentbf5f4bec1a7fb0fa6ec6c4e092e978c74cd1c651 (diff)
downloadbcm5719-llvm-cb373e3f31b945738d134c3d1cb93ee666996c03.tar.gz
bcm5719-llvm-cb373e3f31b945738d134c3d1cb93ee666996c03.zip
[libclang] For c-index-test disable caching of code completion results if
the CINDEXTEST_COMPLETION_NO_CACHING environment variable is present. llvm-svn: 143604
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 80068b61568..b46e3842a0d 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -39,6 +39,8 @@ static unsigned getDefaultParsingOptions() {
options |= CXTranslationUnit_CacheCompletionResults;
if (getenv("CINDEXTEST_NESTED_MACROS"))
options |= CXTranslationUnit_NestedMacroExpansions;
+ if (getenv("CINDEXTEST_COMPLETION_NO_CACHING"))
+ options &= ~CXTranslationUnit_CacheCompletionResults;
return options;
}
OpenPOWER on IntegriCloud