This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Force delayed-template-parsing off in code completion.
ClosedPublic

Authored by sammccall on Mar 31 2020, 2:34 PM.

Details

Summary

It prevents code completion entirely in affected method bodies.
The main reason it's turned on is for compatibility with headers, so we turn it
off for the main file only. This is allowed because it's a compatible langopt.

Fixes https://github.com/clangd/clangd/issues/302

Diff Detail

Event Timeline

sammccall created this revision.Mar 31 2020, 2:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2020, 2:34 PM
kadircet accepted this revision.Apr 1 2020, 1:53 AM

thanks, LGTM!

This revision is now accepted and ready to land.Apr 1 2020, 1:53 AM
This revision was automatically updated to reflect the committed changes.