aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ASTUnit.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-31 17:29:22 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-31 17:29:22 +0000
commit3a6c8141f9aeae620bd5d66c17bf5a721d9d02c1 (patch)
tree7503ccb274720f89cd4e897ec4132a828bd17223 /clang/lib/Frontend/ASTUnit.cpp
parent9d08a15b0f125cfbea946b1404722ef07e02c52f (diff)
downloadllvm-3a6c8141f9aeae620bd5d66c17bf5a721d9d02c1.zip
llvm-3a6c8141f9aeae620bd5d66c17bf5a721d9d02c1.tar.gz
llvm-3a6c8141f9aeae620bd5d66c17bf5a721d9d02c1.tar.bz2
Decouple code-completion for the SkipFunctionBodies frontend option and
add a test to make sure code-completion skips bodies. llvm-svn: 167141
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
-rw-r--r--clang/lib/Frontend/ASTUnit.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp
index 3bcbdb5..cc93d46 100644
--- a/clang/lib/Frontend/ASTUnit.cpp
+++ b/clang/lib/Frontend/ASTUnit.cpp
@@ -2416,8 +2416,6 @@ void ASTUnit::CodeComplete(StringRef File, unsigned Line, unsigned Column,
= new AugmentedCodeCompleteConsumer(*this, Consumer, CodeCompleteOpts);
Clang->setCodeCompletionConsumer(AugmentedConsumer);
- Clang->getFrontendOpts().SkipFunctionBodies = true;
-
// If we have a precompiled preamble, try to use it. We only allow
// the use of the precompiled preamble if we're if the completion
// point is within the main file, after the end of the precompiled