diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-28 00:57:46 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-28 00:57:46 +0000 |
commit | d37c59dae788df41208a0298961099810cbb508c (patch) | |
tree | ed601a0e34a0263fde20eaf5680c31351d361159 /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | 70febae7683056db6a97fbfaa3447236308bc1b8 (diff) | |
download | bcm5719-llvm-d37c59dae788df41208a0298961099810cbb508c.tar.gz bcm5719-llvm-d37c59dae788df41208a0298961099810cbb508c.zip |
Don't put method bodies into code completions unless code patterns are
turned on.
llvm-svn: 104909
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index 0e8fb593683..876aecbd30a 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -3872,7 +3872,7 @@ void Sema::CodeCompleteObjCMethodDecl(Scope *S, Pattern->AddTextChunk("..."); } - if (IsInImplementation) { + if (IsInImplementation && Results.includeCodePatterns()) { // We will be defining the method here, so add a compound statement. Pattern->AddChunk(CodeCompletionString::CK_HorizontalSpace); Pattern->AddChunk(CodeCompletionString::CK_LeftBrace); |