From 6e92251f9b8191e0bad9e73b4a2a5932a4f35f91 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Thu, 12 Apr 2012 10:11:59 +0000 Subject: Added a flag to the parser to skip method bodies. llvm-svn: 154584 --- clang/tools/c-index-test/c-index-test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/tools/c-index-test/c-index-test.c') diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index 04e7a506e23..573e6dc3141 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_COMPLETION_NO_CACHING")) options &= ~CXTranslationUnit_CacheCompletionResults; + if (getenv("CINDEXTEST_SKIP_FUNCTION_BODIES")) + options |= CXTranslationUnit_SkipFunctionBodies; return options; } -- cgit v1.2.3