[all-commits] [llvm/llvm-project] 71f9c3: Move TypeSourceInfo to Type.h

Reid Kleckner via All-commits all-commits at lists.llvm.org
Wed Dec 18 13:47:07 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 71f9c30b5348bbb2b41d4ffa6c7688dec8e0074a
      https://github.com/llvm/llvm-project/commit/71f9c30b5348bbb2b41d4ffa6c7688dec8e0074a
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/include/clang/AST/Type.h
    M clang/include/clang/AST/TypeLoc.h
    M clang/lib/AST/TypeLoc.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list