mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 19:43:38 +08:00
Spell empty StringRef correctly (0 is a null StringRef, which is not the same).
llvm-svn: 87011
This commit is contained in:
@@ -106,7 +106,7 @@ public:
|
||||
|
||||
Chunk() : Kind(CK_Text), Text(0) { }
|
||||
|
||||
Chunk(ChunkKind Kind, llvm::StringRef Text = 0);
|
||||
Chunk(ChunkKind Kind, llvm::StringRef Text = "");
|
||||
|
||||
/// \brief Create a new text chunk.
|
||||
static Chunk CreateText(const char *Text);
|
||||
|
||||
@@ -28,7 +28,7 @@ using namespace clang;
|
||||
// Code completion string implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
CodeCompletionString::Chunk::Chunk(ChunkKind Kind, llvm::StringRef Text)
|
||||
: Kind(Kind), Text(0)
|
||||
: Kind(Kind), Text("")
|
||||
{
|
||||
switch (Kind) {
|
||||
case CK_TypedText:
|
||||
|
||||
Reference in New Issue
Block a user