This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Ensure preamble outlives the AST
ClosedPublic

Authored by ilya-biryukov on Nov 21 2017, 6:23 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

ilya-biryukov created this revision.Nov 21 2017, 6:23 AM
sammccall accepted this revision.Nov 23 2017, 12:38 AM
sammccall added inline comments.
clangd/ClangdUnit.h
51 ↗(On Diff #123777)

can you move the definition here to avoid the extra decl?
(I tend to find this more readable and the struct is small, but if you prefer "top-down" that's fine too)

This revision is now accepted and ready to land.Nov 23 2017, 12:38 AM
  • Moved PreambleData declaration up to avoid fwd-decl.
ilya-biryukov marked an inline comment as done.Nov 24 2017, 5:01 AM
This revision was automatically updated to reflect the committed changes.