[clang-tools-extra] 8dd6dd9 - [clangd] Work around presumed MSVC stdlib bug

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 12 09:00:54 PST 2021


Author: Sam McCall
Date: 2021-02-12T18:00:43+01:00
New Revision: 8dd6dd947c148515bbd5fc06c0b5786148038750

URL: https://github.com/llvm/llvm-project/commit/8dd6dd947c148515bbd5fc06c0b5786148038750
DIFF: https://github.com/llvm/llvm-project/commit/8dd6dd947c148515bbd5fc06c0b5786148038750.diff

LOG: [clangd] Work around presumed MSVC stdlib bug

http://45.33.8.238/win/33161/step_4.txt

Added: 
    

Modified: 
    clang-tools-extra/clangd/ClangdLSPServer.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/ClangdLSPServer.cpp b/clang-tools-extra/clangd/ClangdLSPServer.cpp
index 2aca82ee09d5..1d8efe6d84b7 100644
--- a/clang-tools-extra/clangd/ClangdLSPServer.cpp
+++ b/clang-tools-extra/clangd/ClangdLSPServer.cpp
@@ -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{


        


More information about the cfe-commits mailing list