forked from OSchip/llvm-project
[clangd] Print the Spelled RefKind.
This commit is contained in:
parent
9bda7ab835
commit
b1309a18ba
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue