forked from OSchip/llvm-project
[libclang] For c-index-test disable caching of code completion results if
the CINDEXTEST_COMPLETION_NO_CACHING environment variable is present. llvm-svn: 143604
This commit is contained in:
parent
bf5f4bec1a
commit
cb373e3f31
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue