This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Run semaCodeComplete only with a preamble
ClosedPublic

Authored by kadircet on Apr 1 2020, 2:35 AM.

Details

Summary

It is used by code completion and signature help. Code completion
already uses a special no-compile mode for missing preambles, so this change is
a no-op for that.

As for signature help, it already blocks for a preamble and missing it implies
clang has failed to parse the preamble and retrying it in signature help likely
will fail again. And even if it doesn't, request latency will be too high to be
useful as parsing preambles is expensive.

Diff Detail

Event Timeline

kadircet created this revision.Apr 1 2020, 2:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2020, 2:35 AM
sammccall accepted this revision.Apr 1 2020, 3:04 AM
This revision is now accepted and ready to land.Apr 1 2020, 3:04 AM
This revision was automatically updated to reflect the committed changes.