Author: Adam Czachorowski Date: 2020-03-19T15:09:46+01:00 New Revision: 55b92dcb35a0758bea294ab6e42f9954ac06cac3
URL: https://github.com/llvm/llvm-project/commit/55b92dcb35a0758bea294ab6e42f9954ac06cac3 DIFF: https://github.com/llvm/llvm-project/commit/55b92dcb35a0758bea294ab6e42f9954ac06cac3.diff LOG: [clangd] Fix elog message when preamble build fails. Reviewers: sammccall Reviewed By: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76429 Added: Modified: clang-tools-extra/clangd/Preamble.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/Preamble.cpp b/clang-tools-extra/clangd/Preamble.cpp index bd92b8c1bdb4..fdee71fd2244 100644 --- a/clang-tools-extra/clangd/Preamble.cpp +++ b/clang-tools-extra/clangd/Preamble.cpp @@ -162,7 +162,7 @@ buildPreamble(PathRef FileName, CompilerInvocation &CI, SerializedDeclsCollector.takeMacros(), std::move(StatCache), SerializedDeclsCollector.takeCanonicalIncludes()); } else { - elog("Could not build a preamble for file {0} version {2}", FileName, + elog("Could not build a preamble for file {0} version {1}", FileName, Inputs.Version); return nullptr; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits