Skip to content

Commit 1839ddb

Browse files
committed
[ClangImporter] NFC: extract Swift decl synthesis logic into a separate file
`ImportDecl.cpp` contained 10k+ lines of code, which caused slowdowns in incremental compilation and while editing the code in the IDE. This change extracts a chunk of largely self-contained decl synthesis logic into a separate file.
1 parent 40a7e68 commit 1839ddb

File tree

6 files changed

+2446
-2360
lines changed

6 files changed

+2446
-2360
lines changed

lib/ClangImporter/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_swift_host_library(swiftClangImporter STATIC
1313
ClangImporterRequests.cpp
1414
ClangModuleDependencyScanner.cpp
1515
ClangSourceBufferImporter.cpp
16+
SwiftDeclSynthesizer.cpp
1617
DWARFImporter.cpp
1718
ImportDecl.cpp
1819
ImportEnumInfo.cpp

0 commit comments

Comments
 (0)