[PATCH] D59811: [clangd] Add fallback mode for code completion when compile command or preamble is not ready.
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 8 06:16:24 PDT 2019
ioeric added inline comments.
================
Comment at: clangd/TUScheduler.h:204
+ Callback<InputsAndPreamble> Action,
+ bool AllowFallback = false);
----------------
ilya-biryukov wrote:
> sammccall wrote:
> > I think this isn't orthogonal to `PreambleConsistency`.
> > When would we use AllowFallback = true but PreambleConsistency = Consistent?
> >
> > Two possible options:
> > - adding a new `StaleOrAbsent` option to PreambleConsistency
> > - changing `Stale` to these new semantics, as codeComplete is the only caller
> > The problem with the latter is we can't put it behind a flag.
> Ah, I was totally looking past the `PreambleConsistency` flag.
> Thanks for spotting this. Indeed, modeling the fallback in the `PreambleConsistency` would make sense.
Sounds good. Thanks for the suggestion!
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59811/new/
https://reviews.llvm.org/D59811
More information about the cfe-commits
mailing list