[clang-tools-extra] 49cbe56 - [clangd] Fix forgotten propagation of AsnycPreamble flag
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 3 14:57:00 PDT 2020
Author: Kadir Cetinkaya
Date: 2020-06-03T23:56:49+02:00
New Revision: 49cbe56a657b91e612f8305e7f8f9119ffe84378
URL: https://github.com/llvm/llvm-project/commit/49cbe56a657b91e612f8305e7f8f9119ffe84378
DIFF: https://github.com/llvm/llvm-project/commit/49cbe56a657b91e612f8305e7f8f9119ffe84378.diff
LOG: [clangd] Fix forgotten propagation of AsnycPreamble flag
Added:
Modified:
clang-tools-extra/clangd/tool/ClangdMain.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp
index eec3a830f6e7..c43f125d50d7 100644
--- a/clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -764,6 +764,8 @@ clangd accepts flags on the commandline, and in the CLANGD_FLAGS environment var
// Shall we allow to customize the file limit?
RenameOpts.AllowCrossFile = CrossFileRename;
+ Opts.AsyncPreambleBuilds = AsyncPreamble;
+
ClangdLSPServer LSPServer(
*TransportLayer, FSProvider, CCOpts, RenameOpts, CompileCommandsDirPath,
/*UseDirBasedCDB=*/CompileArgsFrom == FilesystemCompileArgs,
More information about the cfe-commits
mailing list