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) {
|
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, RefKind K) {
|
||||||
if (K == RefKind::Unknown)
|
if (K == RefKind::Unknown)
|
||||||
return OS << "Unknown";
|
return OS << "Unknown";
|
||||||
static constexpr std::array<const char *, 3> Messages = {"Decl", "Def",
|
static constexpr std::array<const char *, 4> Messages = {"Decl", "Def", "Ref",
|
||||||
"Ref"};
|
"Spelled"};
|
||||||
bool VisitedOnce = false;
|
bool VisitedOnce = false;
|
||||||
for (unsigned I = 0; I < Messages.size(); ++I) {
|
for (unsigned I = 0; I < Messages.size(); ++I) {
|
||||||
if (static_cast<uint8_t>(K) & 1u << I) {
|
if (static_cast<uint8_t>(K) & 1u << I) {
|
||||||
|
|
Loading…
Reference in New Issue