Skip to content

Commit 5eb16e6

Browse files
committed
Include-what-you-use: Initializer.h should not be pulled in from AST.h
1 parent e0ed4a1 commit 5eb16e6

20 files changed

+20
-2
lines changed

include/swift/AST/AST.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "swift/AST/Builtins.h"
2323
#include "swift/AST/Decl.h"
2424
#include "swift/AST/Expr.h"
25-
#include "swift/AST/Initializer.h"
2625
#include "swift/AST/Module.h"
2726
#include "swift/AST/ParameterList.h"
2827
#include "swift/AST/Pattern.h"

include/swift/AST/Initializer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define SWIFT_INITIALIZER_H
2222

2323
#include "swift/AST/DeclContext.h"
24+
#include "swift/AST/Decl.h"
2425

2526
namespace swift {
2627
class PatternBindingDecl;

lib/AST/ASTDumper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "swift/AST/ASTVisitor.h"
2121
#include "swift/AST/ForeignErrorConvention.h"
2222
#include "swift/AST/GenericEnvironment.h"
23+
#include "swift/AST/Initializer.h"
2324
#include "swift/AST/ParameterList.h"
2425
#include "swift/AST/TypeVisitor.h"
2526
#include "swift/Basic/STLExtras.h"

lib/AST/ASTVerifier.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "swift/AST/ASTWalker.h"
2222
#include "swift/AST/ForeignErrorConvention.h"
2323
#include "swift/AST/GenericEnvironment.h"
24+
#include "swift/AST/Initializer.h"
2425
#include "swift/AST/Mangle.h"
2526
#include "swift/AST/PrettyStackTrace.h"
2627
#include "swift/Basic/SourceManager.h"

lib/AST/Decl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "swift/AST/Expr.h"
2525
#include "swift/AST/ForeignErrorConvention.h"
2626
#include "swift/AST/GenericEnvironment.h"
27+
#include "swift/AST/Initializer.h"
2728
#include "swift/AST/LazyResolver.h"
2829
#include "swift/AST/Mangle.h"
2930
#include "swift/AST/ParameterList.h"

lib/AST/DeclContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "swift/AST/AccessScope.h"
1616
#include "swift/AST/ASTWalker.h"
1717
#include "swift/AST/GenericEnvironment.h"
18+
#include "swift/AST/Initializer.h"
1819
#include "swift/AST/Types.h"
1920
#include "swift/Basic/SourceManager.h"
2021
#include "llvm/ADT/DenseMap.h"

lib/AST/LookupVisibleDecls.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
//===----------------------------------------------------------------------===//
1717

1818
#include "NameLookupImpl.h"
19-
#include "swift/AST/NameLookup.h"
2019
#include "swift/AST/AST.h"
20+
#include "swift/AST/NameLookup.h"
21+
#include "swift/AST/Initializer.h"
2122
#include "swift/Basic/SourceManager.h"
2223
#include "swift/Basic/STLExtras.h"
2324
#include "swift/Sema/IDETypeChecking.h"

lib/AST/NameLookup.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "swift/AST/ASTVisitor.h"
2222
#include "swift/AST/DebuggerClient.h"
2323
#include "swift/AST/LazyResolver.h"
24+
#include "swift/AST/Initializer.h"
2425
#include "swift/AST/ReferencedNameTracker.h"
2526
#include "swift/Basic/Fallthrough.h"
2627
#include "swift/Basic/SourceManager.h"

lib/IDE/CodeCompletion.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "swift/AST/ASTPrinter.h"
1616
#include "swift/AST/ASTWalker.h"
1717
#include "swift/AST/Comment.h"
18+
#include "swift/AST/Initializer.h"
1819
#include "swift/AST/LazyResolver.h"
1920
#include "swift/AST/NameLookup.h"
2021
#include "swift/AST/USRGeneration.h"

lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "swift/AST/Attr.h"
2222
#include "swift/AST/DebuggerClient.h"
2323
#include "swift/AST/DiagnosticsParse.h"
24+
#include "swift/AST/Initializer.h"
2425
#include "swift/AST/Module.h"
2526
#include "swift/AST/ParameterList.h"
2627
#include "swift/Basic/Defer.h"

lib/Parse/ParsePattern.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "swift/Parse/CodeCompletionCallbacks.h"
1818
#include "swift/Parse/Parser.h"
1919
#include "swift/AST/ASTWalker.h"
20+
#include "swift/AST/Initializer.h"
2021
#include "swift/Basic/StringExtras.h"
2122
#include "llvm/ADT/SmallString.h"
2223
#include "llvm/ADT/StringMap.h"

lib/SILGen/SILGenFunction.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "swift/Basic/Fallthrough.h"
2222
#include "swift/AST/AST.h"
2323
#include "swift/AST/GenericEnvironment.h"
24+
#include "swift/AST/Initializer.h"
2425
#include "swift/SIL/SILArgument.h"
2526
#include "swift/SIL/SILUndef.h"
2627

lib/Sema/CSDiag.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "MiscDiagnostics.h"
1919
#include "swift/AST/ASTWalker.h"
2020
#include "swift/AST/GenericEnvironment.h"
21+
#include "swift/AST/Initializer.h"
2122
#include "swift/AST/TypeWalker.h"
2223
#include "swift/AST/TypeMatcher.h"
2324
#include "swift/Basic/Defer.h"

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "swift/AST/ASTVisitor.h"
2424
#include "swift/AST/ASTWalker.h"
2525
#include "swift/AST/DiagnosticsParse.h"
26+
#include "swift/AST/Initializer.h"
2627
#include "swift/AST/NameLookup.h"
2728
#include "swift/AST/PrettyStackTrace.h"
2829
#include "swift/AST/TypeCheckerDebugConsumer.h"

lib/Sema/TypeCheckError.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "TypeChecker.h"
1919
#include "swift/AST/ASTWalker.h"
2020
#include "swift/AST/DiagnosticsSema.h"
21+
#include "swift/AST/Initializer.h"
2122

2223
using namespace swift;
2324

lib/Sema/TypeCheckExpr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "TypeChecker.h"
1919
#include "swift/AST/NameLookup.h"
2020
#include "swift/AST/Decl.h"
21+
#include "swift/AST/Initializer.h"
2122
#include "swift/Parse/Lexer.h"
2223
using namespace swift;
2324

lib/Sema/TypeCheckStmt.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "swift/AST/ASTWalker.h"
2121
#include "swift/AST/ASTVisitor.h"
2222
#include "swift/AST/Identifier.h"
23+
#include "swift/AST/Initializer.h"
2324
#include "swift/AST/NameLookup.h"
2425
#include "swift/AST/PrettyStackTrace.h"
2526
#include "swift/Basic/Range.h"

lib/Sema/TypeChecker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "swift/AST/ASTVisitor.h"
2323
#include "swift/AST/Attr.h"
2424
#include "swift/AST/Identifier.h"
25+
#include "swift/AST/Initializer.h"
2526
#include "swift/AST/ModuleLoader.h"
2627
#include "swift/AST/NameLookup.h"
2728
#include "swift/AST/PrettyStackTrace.h"

lib/Serialization/Deserialization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "swift/AST/ArchetypeBuilder.h"
1818
#include "swift/AST/ForeignErrorConvention.h"
1919
#include "swift/AST/GenericEnvironment.h"
20+
#include "swift/AST/Initializer.h"
2021
#include "swift/AST/PrettyStackTrace.h"
2122
#include "swift/ClangImporter/ClangImporter.h"
2223
#include "swift/Parse/Parser.h"

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "swift/AST/DiagnosticsCommon.h"
1818
#include "swift/AST/ForeignErrorConvention.h"
1919
#include "swift/AST/GenericEnvironment.h"
20+
#include "swift/AST/Initializer.h"
2021
#include "swift/AST/LinkLibrary.h"
2122
#include "swift/AST/Mangle.h"
2223
#include "swift/AST/RawComment.h"

0 commit comments

Comments
 (0)