[cfe-commits] r96567 - /cfe/trunk/lib/Sema/SemaCodeComplete.cpp
Douglas Gregor
dgregor at apple.com
Wed Feb 17 20:06:48 PST 2010
Author: dgregor
Date: Wed Feb 17 22:06:48 2010
New Revision: 96567
URL: http://llvm.org/viewvc/llvm-project?rev=96567&view=rev
Log:
Add some spacing in the code-completion results for a return statement
Modified:
cfe/trunk/lib/Sema/SemaCodeComplete.cpp
Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCodeComplete.cpp?rev=96567&r1=96566&r2=96567&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaCodeComplete.cpp (original)
+++ cfe/trunk/lib/Sema/SemaCodeComplete.cpp Wed Feb 17 22:06:48 2010
@@ -1141,8 +1141,10 @@
isVoid = SemaRef.CurBlock->ReturnType->isVoidType();
Pattern = new CodeCompletionString;
Pattern->AddTypedTextChunk("return");
- if (!isVoid)
+ if (!isVoid) {
+ Pattern->AddChunk(CodeCompletionString::CK_HorizontalSpace);
Pattern->AddPlaceholderChunk("expression");
+ }
Pattern->AddChunk(CodeCompletionString::CK_SemiColon);
Results.AddResult(Result(Pattern));
More information about the cfe-commits
mailing list