This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Disable delayed template parsing in the main file
ClosedPublic

Authored by sammccall on Apr 24 2020, 6:03 PM.

Details

Summary

This is on by default in windows and breaks most features in template bodies.
We'd already disabled it in code completion, now disable it for building ASTs.

Potential regressions:

  • we may give spurious errors where files with templates relying on delayed parsing are directly opened
  • we may misparse such template bodies that are instantiated (and therefore *were* previously parsed)

Still *probably* a win overall. Avoiding the regressions entirely would be
substantial work and we don't have plans for it now.

Fixes https://github.com/clangd/clangd/issues/302 (again)

Diff Detail

Event Timeline

sammccall created this revision.Apr 24 2020, 6:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2020, 6:03 PM
kadircet accepted this revision.Apr 25 2020, 4:46 AM

thanks, LGTM!

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