Skip to content

Commit

Permalink
[clangd] Print the Spelled RefKind.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Feb 13, 2020
1 parent 9bda7ab commit b1309a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang-tools-extra/clangd/index/Ref.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit b1309a1

Please sign in to comment.