Move TypeSourceInfo to Type.h
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. Reviewers: rsmith Differential Revision: https://reviews.llvm.org/D71427
Showing
- clang/include/clang/AST/Decl.h 0 additions, 27 deletionsclang/include/clang/AST/Decl.h
- clang/include/clang/AST/Type.h 27 additions, 0 deletionsclang/include/clang/AST/Type.h
- clang/include/clang/AST/TypeLoc.h 2 additions, 6 deletionsclang/include/clang/AST/TypeLoc.h
- clang/lib/AST/TypeLoc.cpp 6 additions, 0 deletionsclang/lib/AST/TypeLoc.cpp
Loading
Please register or sign in to comment