[PATCH] D71427: Move TypeSourceInfo to Type.h

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 12 11:36:25 PST 2019


rnk created this revision.
rnk added a reviewer: rsmith.
Herald added a project: clang.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71427

Files:
  clang/include/clang/AST/Decl.h
  clang/include/clang/AST/Type.h
  clang/include/clang/AST/TypeLoc.h
  clang/lib/AST/TypeLoc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71427.233659.patch
Type: text/x-patch
Size: 3968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191212/438caa72/attachment-0001.bin>


More information about the cfe-commits mailing list