[clangd] Print the Spelled RefKind.

This commit is contained in:
Haojian Wu 2020-02-13 13:26:42 +01:00
parent 9bda7ab835
commit b1309a18ba
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ namespace clangd {
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, RefKind K) {
if (K == RefKind::Unknown)
return OS << "Unknown";
static constexpr std::array<const char *, 3> Messages = {"Decl", "Def",
"Ref"};
static constexpr std::array<const char *, 4> Messages = {"Decl", "Def", "Ref",
"Spelled"};
bool VisitedOnce = false;
for (unsigned I = 0; I < Messages.size(); ++I) {
if (static_cast<uint8_t>(K) & 1u << I) {