[all-commits] [llvm/llvm-project] 60573a: Remove Expr.h include from ASTContext.h, NFC

Reid Kleckner via All-commits all-commits at lists.llvm.org
Fri Dec 6 15:30:53 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 60573ae6fe509b618dc6a2c5c55d921bccd77608
      https://github.com/llvm/llvm-project/commit/60573ae6fe509b618dc6a2c5c55d921bccd77608
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-12-06 (Fri, 06 Dec 2019)

  Changed paths:
    M clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/ASTFwd.h
    M clang/include/clang/AST/ASTTypeTraits.h
    M clang/include/clang/AST/Expr.h
    M clang/include/clang/AST/TypeLoc.h
    M clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/ASTTypeTraits.cpp
    M clang/lib/AST/Decl.cpp
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/AST/TypeLoc.cpp
    M clang/lib/Analysis/CloneDetection.cpp
    M clang/lib/Index/IndexDecl.cpp
    M clang/lib/Index/IndexSymbol.cpp
    M clang/lib/Index/IndexingContext.cpp
    M clang/lib/Index/USRGeneration.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
    M clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
    M clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
    M clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
    M clang/lib/StaticAnalyzer/Core/CallEvent.cpp
    M clang/lib/Tooling/Refactoring/ASTSelectionRequirements.cpp

  Log Message:
  -----------
  Remove Expr.h include from ASTContext.h, NFC

ASTContext.h is popular, prune its includes. Expr.h brings in Attr.h,
which is also expensive.

Move BlockVarCopyInit to Expr.h to accomplish this.




More information about the All-commits mailing list