]> granicus.if.org Git - clang/commitdiff
Turn vertical spacing into horizontal spacing in code-completion results
authorDouglas Gregor <dgregor@apple.com>
Tue, 25 May 2010 06:14:46 +0000 (06:14 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 25 May 2010 06:14:46 +0000 (06:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104586 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndexCodeCompletion.cpp

index a21614c747350429124bcc213597a4e434b9eb93..3d66843a5993b9d90f63c3f454d468e451497999 100644 (file)
@@ -121,9 +121,12 @@ CXString clang_getCompletionChunkText(CXCompletionString completion_string,
   case CodeCompletionString::CK_SemiColon:
   case CodeCompletionString::CK_Equal:
   case CodeCompletionString::CK_HorizontalSpace:
-  case CodeCompletionString::CK_VerticalSpace:
     return createCXString((*CCStr)[chunk_number].Text, false);
 
+  case CodeCompletionString::CK_VerticalSpace:
+    // FIXME: Temporary hack until we figure out how to handle vertical space.
+    return createCXString(" ");
+      
   case CodeCompletionString::CK_Optional:
     // Note: treated as an empty text block.
     return createCXString("");