Skip to content

Commit

Permalink
[clangd] Improve long and confusing preamble log message.
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-mccall committed Nov 16, 2019
1 parent bf142fc commit a7f97b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clang-tools-extra/clangd/Preamble.cpp
Expand Up @@ -102,10 +102,11 @@ buildPreamble(PathRef FileName, CompilerInvocation &CI,
compileCommandsAreEqual(Inputs.CompileCommand, OldCompileCommand) &&
OldPreamble->Preamble.CanReuse(CI, ContentsBuffer.get(), Bounds,
Inputs.FS.get())) {
vlog("Reusing preamble for file {0}", llvm::Twine(FileName));
vlog("Reusing preamble for {0}", FileName);
return OldPreamble;
}
vlog("Preamble for file {0} cannot be reused. Attempting to rebuild it.",
vlog(OldPreamble ? "Rebuilding invalidated preamble for {0}"
: "Building first preamble for {0}",
FileName);

trace::Span Tracer("BuildPreamble");
Expand Down

0 comments on commit a7f97b0

Please sign in to comment.