[PATCH] D112137: [clangd] Only publish preamble after rebuilds
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 20 06:34:13 PDT 2021
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clangd/TUScheduler.cpp:904
const ParseInputs &Inputs = Req.Inputs;
+ bool RebuiltPreamble = true;
----------------
I think it would be clearer to invert the sense here (`ReusedPreamble=false`).
This avoids the "tension" of saying `RebuiltPreamble=true` when we haven't built one yet, and then having to ensure we satisfy that promise later.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112137/new/
https://reviews.llvm.org/D112137
More information about the cfe-commits
mailing list