[clangd] Work around presumed MSVC stdlib bug

http://45.33.8.238/win/33161/step_4.txt
This commit is contained in:
Sam McCall 2021-02-12 17:59:16 +01:00
parent ac2627fd9a
commit 8dd6dd947c
1 changed files with 2 additions and 1 deletions

View File

@ -586,7 +586,8 @@ void ClangdLSPServer::onInitialize(const InitializeParams &Params,
CodeAction::INFO_KIND}}};
std::vector<llvm::StringRef> Commands;
llvm::append_range(Commands, CommandHandlers.keys());
for (llvm::StringRef Command : CommandHandlers.keys())
Commands.push_back(Command);
llvm::sort(Commands);
llvm::json::Object Result{