diff options
author | Erik Verbruggen <erikjv@me.com> | 2012-04-12 10:11:59 +0000 |
---|---|---|
committer | Erik Verbruggen <erikjv@me.com> | 2012-04-12 10:11:59 +0000 |
commit | 6e92251f9b8191e0bad9e73b4a2a5932a4f35f91 (patch) | |
tree | aa1068ef614617995355eae4f9d9d8a1b78fa52a /clang/tools/c-index-test/c-index-test.c | |
parent | f2a8ea3afdc4f30061ca637d94a4f1974a93c8f2 (diff) | |
download | bcm5719-llvm-6e92251f9b8191e0bad9e73b4a2a5932a4f35f91.tar.gz bcm5719-llvm-6e92251f9b8191e0bad9e73b4a2a5932a4f35f91.zip |
Added a flag to the parser to skip method bodies.
llvm-svn: 154584
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 2 |
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 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; } |