Don't put method bodies into code completions unless code patterns are
turned on. llvm-svn: 104909
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user