Skip to content

Commit

Permalink
[clangd] Fix elog message when preamble build fails.
Browse files Browse the repository at this point in the history
Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D76429
  • Loading branch information
gislan authored and sam-mccall committed Mar 19, 2020
1 parent 4436178 commit 55b92dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/Preamble.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 55b92dc

Please sign in to comment.