]> granicus.if.org Git - clang/commitdiff
clang_getCompletionChunkText() will treat optional strings as empty text blocks
authorDouglas Gregor <dgregor@apple.com>
Thu, 10 Dec 2009 22:46:19 +0000 (22:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 10 Dec 2009 22:46:19 +0000 (22:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91072 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CIndex/CIndex.cpp

index 5e8e02df1a9252594a5ea7c5b5eb8e5f7ef4eb47..5c9fb3adf615de89ed14177b76d63090d232a265 100644 (file)
@@ -1146,7 +1146,7 @@ const char *clang_getCompletionChunkText(CXCompletionString completion_string,
 
   case CodeCompletionString::CK_Optional:
     // Note: treated as an empty text block.
-    return 0;
+    return "";
   }
 
   // Should be unreachable, but let's be careful.