Changeset View
Changeset View
Standalone View
Standalone View
clang-tools-extra/clangd/TUScheduler.cpp
Show First 20 Lines • Show All 888 Lines • ▼ Show 20 Lines | auto Task = [=]() mutable { | ||||
} | } | ||||
// Update current inputs so that subsequent reads can see them. | // Update current inputs so that subsequent reads can see them. | ||||
{ | { | ||||
std::lock_guard<std::mutex> Lock(Mutex); | std::lock_guard<std::mutex> Lock(Mutex); | ||||
FileInputs = Inputs; | FileInputs = Inputs; | ||||
} | } | ||||
if (isCancelled()) { | |||||
log("ASTWorker skipping update {0} for file {1}", Inputs.Version, | |||||
adamcz: I'd add something like "due to cancellation". I know you can tell that from the line number… | |||||
FileName); | |||||
// Don't even emplace a preamble, as we still want the first valid update | |||||
// to block any further reads. | |||||
return; | |||||
} | |||||
log("ASTWorker building file {0} version {1} with command {2}\n[{3}]\n{4}", | log("ASTWorker building file {0} version {1} with command {2}\n[{3}]\n{4}", | ||||
FileName, Inputs.Version, Inputs.CompileCommand.Heuristic, | FileName, Inputs.Version, Inputs.CompileCommand.Heuristic, | ||||
Inputs.CompileCommand.Directory, | Inputs.CompileCommand.Directory, | ||||
printArgv(Inputs.CompileCommand.CommandLine)); | printArgv(Inputs.CompileCommand.CommandLine)); | ||||
StoreDiags CompilerInvocationDiagConsumer; | StoreDiags CompilerInvocationDiagConsumer; | ||||
std::vector<std::string> CC1Args; | std::vector<std::string> CC1Args; | ||||
std::unique_ptr<CompilerInvocation> Invocation = buildCompilerInvocation( | std::unique_ptr<CompilerInvocation> Invocation = buildCompilerInvocation( | ||||
▲ Show 20 Lines • Show All 940 Lines • Show Last 20 Lines |
I'd add something like "due to cancellation". I know you can tell that from the line number, but at first glance someone might think it's due to lack of changes or something like that.