[cfe-commits] r104586 - /cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp

Douglas Gregor dgregor at apple.com
Mon May 24 23:14:46 PDT 2010


Author: dgregor
Date: Tue May 25 01:14:46 2010
New Revision: 104586

URL: http://llvm.org/viewvc/llvm-project?rev=104586&view=rev
Log:
Turn vertical spacing into horizontal spacing in code-completion results

Modified:
    cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp

Modified: cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp?rev=104586&r1=104585&r2=104586&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp Tue May 25 01:14:46 2010
@@ -121,9 +121,12 @@
   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("");





More information about the cfe-commits mailing list