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 | 6a91d385618ea4d28236c496f540a26877c95525 (patch) | |
tree | 519b6349002f939312dbf362c992bd0507211beb /tools/c-index-test | |
parent | f33d549b16a4d2f7325a099eee0ab7ee50c9528f (diff) |
Added a flag to the parser to skip method bodies.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 04e7a506e2..573e6dc314 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_COMPLETION_NO_CACHING")) options &= ~CXTranslationUnit_CacheCompletionResults; + if (getenv("CINDEXTEST_SKIP_FUNCTION_BODIES")) + options |= CXTranslationUnit_SkipFunctionBodies; return options; } |