[clangd][NFC] Improve clangd status messages

clangd actions have various naming schemes, the most
common being PascalCase. This commit applies PascalCase
to all clangd actions, and fix the status rendering
in `renderTUAction` to look more consistent.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D93546
This commit is contained in:
Quentin Chateau 2020-12-21 20:16:47 +01:00 committed by Sam McCall
parent 82bd64fff6
commit 3fa2d37eb3
2 changed files with 5 additions and 5 deletions

View File

@ -621,7 +621,7 @@ void ClangdServer::typeHierarchy(PathRef File, Position Pos, int Resolve,
File));
};
WorkScheduler.runWithAST("Type Hierarchy", File, std::move(Action));
WorkScheduler.runWithAST("TypeHierarchy", File, std::move(Action));
}
void ClangdServer::resolveTypeHierarchy(
@ -642,7 +642,7 @@ void ClangdServer::prepareCallHierarchy(
return CB(InpAST.takeError());
CB(clangd::prepareCallHierarchy(InpAST->AST, Pos, File));
};
WorkScheduler.runWithAST("Call Hierarchy", File, std::move(Action));
WorkScheduler.runWithAST("CallHierarchy", File, std::move(Action));
}
void ClangdServer::incomingCalls(
@ -678,7 +678,7 @@ void ClangdServer::documentSymbols(llvm::StringRef File,
return CB(InpAST.takeError());
CB(clangd::getDocumentSymbols(InpAST->AST));
};
WorkScheduler.runWithAST("documentSymbols", File, std::move(Action),
WorkScheduler.runWithAST("DocumentSymbols", File, std::move(Action),
TUScheduler::InvalidateOnUpdate);
}
@ -690,7 +690,7 @@ void ClangdServer::foldingRanges(llvm::StringRef File,
return CB(InpAST.takeError());
CB(clangd::getFoldingRanges(InpAST->AST));
};
WorkScheduler.runWithAST("foldingRanges", File, std::move(Action),
WorkScheduler.runWithAST("FoldingRanges", File, std::move(Action),
TUScheduler::InvalidateOnUpdate);
}

View File

@ -1220,7 +1220,7 @@ std::string renderTUAction(const PreambleAction PA, const ASTAction &AA) {
}
if (Result.empty())
return "idle";
return llvm::join(Result, ",");
return llvm::join(Result, ", ");
}
} // namespace