From dcaca015a2f08e03a6d86222fec2e83e04f6b848 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Thu, 3 Nov 2011 02:20:25 +0000 Subject: [PATCH] [libclang] For c-index-test disable caching of code completion results if the CINDEXTEST_COMPLETION_NO_CACHING environment variable is present. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143604 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/c-index-test/c-index-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 80068b6156..b46e3842a0 100644 --- a/tools/c-index-test/c-index-test.c +++ b/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; } -- 2.40.0