forked from OSchip/llvm-project
[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:
parent
82bd64fff6
commit
3fa2d37eb3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue