[cfe-commits] r91072 - /cfe/trunk/tools/CIndex/CIndex.cpp

Douglas Gregor dgregor at apple.com
Thu Dec 10 14:46:19 PST 2009


Author: dgregor
Date: Thu Dec 10 16:46:19 2009
New Revision: 91072

URL: http://llvm.org/viewvc/llvm-project?rev=91072&view=rev
Log:
clang_getCompletionChunkText() will treat optional strings as empty text blocks

Modified:
    cfe/trunk/tools/CIndex/CIndex.cpp

Modified: cfe/trunk/tools/CIndex/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=91072&r1=91071&r2=91072&view=diff

==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndex.cpp Thu Dec 10 16:46:19 2009
@@ -1146,7 +1146,7 @@
 
   case CodeCompletionString::CK_Optional:
     // Note: treated as an empty text block.
-    return 0;
+    return "";
   }
 
   // Should be unreachable, but let's be careful.





More information about the cfe-commits mailing list