Skip to content

Commit 7d6283f

Browse files
committed
[NFC] Remove unneeded header includes
Use forward decls instead of #including the header files. Differential Revision: https://reviews.llvm.org/D159421
1 parent 6b46c76 commit 7d6283f

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,9 @@
2424
#include "clang/AST/PrettyPrinter.h"
2525
#include "clang/AST/RawCommentList.h"
2626
#include "clang/AST/TemplateName.h"
27-
#include "clang/Basic/IdentifierTable.h"
2827
#include "clang/Basic/LLVM.h"
29-
#include "clang/Basic/LangOptions.h"
30-
#include "clang/Basic/NoSanitizeList.h"
3128
#include "clang/Basic/PartialDiagnostic.h"
32-
#include "clang/Basic/ProfileList.h"
3329
#include "clang/Basic/SourceLocation.h"
34-
#include "clang/Basic/XRayLists.h"
3530
#include "llvm/ADT/DenseMap.h"
3631
#include "llvm/ADT/DenseSet.h"
3732
#include "llvm/ADT/FoldingSet.h"
@@ -62,6 +57,7 @@ class ASTMutationListener;
6257
class ASTRecordLayout;
6358
class AtomicExpr;
6459
class BlockExpr;
60+
struct BlockVarCopyInit;
6561
class BuiltinTemplateDecl;
6662
class CharUnits;
6763
class ConceptDecl;
@@ -70,17 +66,19 @@ class CXXConstructorDecl;
7066
class CXXMethodDecl;
7167
class CXXRecordDecl;
7268
class DiagnosticsEngine;
73-
class ParentMapContext;
7469
class DynTypedNodeList;
7570
class Expr;
7671
enum class FloatModeKind;
7772
class GlobalDecl;
73+
class IdentifierTable;
74+
class LangOptions;
7875
class MangleContext;
7976
class MangleNumberingContext;
8077
class MemberSpecializationInfo;
8178
class Module;
8279
struct MSGuidDeclParts;
8380
class NestedNameSpecifier;
81+
class NoSanitizeList;
8482
class ObjCCategoryDecl;
8583
class ObjCCategoryImplDecl;
8684
class ObjCContainerDecl;
@@ -94,8 +92,10 @@ class ObjCPropertyImplDecl;
9492
class ObjCProtocolDecl;
9593
class ObjCTypeParamDecl;
9694
class OMPTraitInfo;
95+
class ParentMapContext;
9796
struct ParsedTargetAttr;
9897
class Preprocessor;
98+
class ProfileList;
9999
class StoredDeclsMap;
100100
class TargetAttr;
101101
class TargetInfo;
@@ -108,7 +108,7 @@ class UnresolvedSetIterator;
108108
class UsingShadowDecl;
109109
class VarTemplateDecl;
110110
class VTableContextBase;
111-
struct BlockVarCopyInit;
111+
class XRayFunctionFilter;
112112

113113
namespace Builtin {
114114

clang/lib/AST/ASTContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#include "clang/Basic/Module.h"
5959
#include "clang/Basic/NoSanitizeList.h"
6060
#include "clang/Basic/ObjCRuntime.h"
61+
#include "clang/Basic/ProfileList.h"
6162
#include "clang/Basic/SourceLocation.h"
6263
#include "clang/Basic/SourceManager.h"
6364
#include "clang/Basic/Specifiers.h"

clang/lib/CodeGen/CodeGenModule.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "clang/Basic/LangOptions.h"
2727
#include "clang/Basic/Module.h"
2828
#include "clang/Basic/NoSanitizeList.h"
29+
#include "clang/Basic/ProfileList.h"
2930
#include "clang/Basic/TargetInfo.h"
3031
#include "clang/Basic/XRayLists.h"
3132
#include "clang/Lex/PreprocessorOptions.h"

0 commit comments

Comments
 (0)