Page MenuHomePhabricator

Move TypeSourceInfo to Type.h

Authored by rnk on Dec 12 2019, 11:36 AM.



TypeSourceInfo is a thin wrapper around TypeLocs. Notionally, the best
place for it to live would be TypeLoc.h, but Decl.h requires it to be
complete, so it needs to be lower in the dependency graph. Type.h seems
like the next best place.

By itself, this change has no impact on build time, because it doesn't
remove a single dependency edge from a .cpp file to a .h file, but it is
an incremental step towards making the AST headers less interdependent.

Diff Detail

Event Timeline

rnk created this revision.Dec 12 2019, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2019, 11:36 AM
rsmith accepted this revision.Dec 14 2019, 2:56 PM
This revision is now accepted and ready to land.Dec 14 2019, 2:56 PM
This revision was automatically updated to reflect the committed changes.