void created this revision. void added reviewers: erichkeane, nickdesaulniers. Herald added a project: All. void requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Use forward decls instead of #including the header files. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D159421 Files: clang/include/clang/AST/ASTContext.h clang/lib/AST/ASTContext.cpp clang/lib/CodeGen/CodeGenModule.h Index: clang/lib/CodeGen/CodeGenModule.h =================================================================== --- clang/lib/CodeGen/CodeGenModule.h +++ clang/lib/CodeGen/CodeGenModule.h @@ -26,6 +26,7 @@ #include "clang/Basic/LangOptions.h" #include "clang/Basic/Module.h" #include "clang/Basic/NoSanitizeList.h" +#include "clang/Basic/ProfileList.h" #include "clang/Basic/TargetInfo.h" #include "clang/Basic/XRayLists.h" #include "clang/Lex/PreprocessorOptions.h" Index: clang/lib/AST/ASTContext.cpp =================================================================== --- clang/lib/AST/ASTContext.cpp +++ clang/lib/AST/ASTContext.cpp @@ -58,6 +58,7 @@ #include "clang/Basic/Module.h" #include "clang/Basic/NoSanitizeList.h" #include "clang/Basic/ObjCRuntime.h" +#include "clang/Basic/ProfileList.h" #include "clang/Basic/SourceLocation.h" #include "clang/Basic/SourceManager.h" #include "clang/Basic/Specifiers.h" Index: clang/include/clang/AST/ASTContext.h =================================================================== --- clang/include/clang/AST/ASTContext.h +++ clang/include/clang/AST/ASTContext.h @@ -24,14 +24,9 @@ #include "clang/AST/PrettyPrinter.h" #include "clang/AST/RawCommentList.h" #include "clang/AST/TemplateName.h" -#include "clang/Basic/IdentifierTable.h" #include "clang/Basic/LLVM.h" -#include "clang/Basic/LangOptions.h" -#include "clang/Basic/NoSanitizeList.h" #include "clang/Basic/PartialDiagnostic.h" -#include "clang/Basic/ProfileList.h" #include "clang/Basic/SourceLocation.h" -#include "clang/Basic/XRayLists.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/FoldingSet.h" @@ -62,6 +57,7 @@ class ASTRecordLayout; class AtomicExpr; class BlockExpr; +struct BlockVarCopyInit; class BuiltinTemplateDecl; class CharUnits; class ConceptDecl; @@ -70,17 +66,19 @@ class CXXMethodDecl; class CXXRecordDecl; class DiagnosticsEngine; -class ParentMapContext; class DynTypedNodeList; class Expr; enum class FloatModeKind; class GlobalDecl; +class IdentifierTable; +class LangOptions; class MangleContext; class MangleNumberingContext; class MemberSpecializationInfo; class Module; struct MSGuidDeclParts; class NestedNameSpecifier; +class NoSanitizeList; class ObjCCategoryDecl; class ObjCCategoryImplDecl; class ObjCContainerDecl; @@ -94,8 +92,10 @@ class ObjCProtocolDecl; class ObjCTypeParamDecl; class OMPTraitInfo; +class ParentMapContext; struct ParsedTargetAttr; class Preprocessor; +class ProfileList; class StoredDeclsMap; class TargetAttr; class TargetInfo; @@ -108,7 +108,7 @@ class UsingShadowDecl; class VarTemplateDecl; class VTableContextBase; -struct BlockVarCopyInit; +class XRayFunctionFilter; namespace Builtin {
Index: clang/lib/CodeGen/CodeGenModule.h =================================================================== --- clang/lib/CodeGen/CodeGenModule.h +++ clang/lib/CodeGen/CodeGenModule.h @@ -26,6 +26,7 @@ #include "clang/Basic/LangOptions.h" #include "clang/Basic/Module.h" #include "clang/Basic/NoSanitizeList.h" +#include "clang/Basic/ProfileList.h" #include "clang/Basic/TargetInfo.h" #include "clang/Basic/XRayLists.h" #include "clang/Lex/PreprocessorOptions.h" Index: clang/lib/AST/ASTContext.cpp =================================================================== --- clang/lib/AST/ASTContext.cpp +++ clang/lib/AST/ASTContext.cpp @@ -58,6 +58,7 @@ #include "clang/Basic/Module.h" #include "clang/Basic/NoSanitizeList.h" #include "clang/Basic/ObjCRuntime.h" +#include "clang/Basic/ProfileList.h" #include "clang/Basic/SourceLocation.h" #include "clang/Basic/SourceManager.h" #include "clang/Basic/Specifiers.h" Index: clang/include/clang/AST/ASTContext.h =================================================================== --- clang/include/clang/AST/ASTContext.h +++ clang/include/clang/AST/ASTContext.h @@ -24,14 +24,9 @@ #include "clang/AST/PrettyPrinter.h" #include "clang/AST/RawCommentList.h" #include "clang/AST/TemplateName.h" -#include "clang/Basic/IdentifierTable.h" #include "clang/Basic/LLVM.h" -#include "clang/Basic/LangOptions.h" -#include "clang/Basic/NoSanitizeList.h" #include "clang/Basic/PartialDiagnostic.h" -#include "clang/Basic/ProfileList.h" #include "clang/Basic/SourceLocation.h" -#include "clang/Basic/XRayLists.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/FoldingSet.h" @@ -62,6 +57,7 @@ class ASTRecordLayout; class AtomicExpr; class BlockExpr; +struct BlockVarCopyInit; class BuiltinTemplateDecl; class CharUnits; class ConceptDecl; @@ -70,17 +66,19 @@ class CXXMethodDecl; class CXXRecordDecl; class DiagnosticsEngine; -class ParentMapContext; class DynTypedNodeList; class Expr; enum class FloatModeKind; class GlobalDecl; +class IdentifierTable; +class LangOptions; class MangleContext; class MangleNumberingContext; class MemberSpecializationInfo; class Module; struct MSGuidDeclParts; class NestedNameSpecifier; +class NoSanitizeList; class ObjCCategoryDecl; class ObjCCategoryImplDecl; class ObjCContainerDecl; @@ -94,8 +92,10 @@ class ObjCProtocolDecl; class ObjCTypeParamDecl; class OMPTraitInfo; +class ParentMapContext; struct ParsedTargetAttr; class Preprocessor; +class ProfileList; class StoredDeclsMap; class TargetAttr; class TargetInfo; @@ -108,7 +108,7 @@ class UsingShadowDecl; class VarTemplateDecl; class VTableContextBase; -struct BlockVarCopyInit; +class XRayFunctionFilter; namespace Builtin {
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits