From: Argyrios Kyrtzidis Date: Thu, 3 Nov 2011 02:20:25 +0000 (+0000) Subject: [libclang] For c-index-test disable caching of code completion results if X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcaca015a2f08e03a6d86222fec2e83e04f6b848;p=clang [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 --- 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; }