File tree Expand file tree Collapse file tree 3 files changed +2
-17
lines changed Expand file tree Collapse file tree 3 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -856,10 +856,6 @@ class ASTContext final {
856
856
return getIdentifier (getSwiftName (kind));
857
857
}
858
858
859
- // / Collect visible clang modules from the ClangModuleLoader. These modules are
860
- // / not necessarily loaded.
861
- void getVisibleTopLevelClangModules (SmallVectorImpl<clang::Module*> &Modules) const ;
862
-
863
859
// / Populate \p names with visible top level module names.
864
860
// / This guarantees that resulted \p names doesn't have duplicated names.
865
861
void getVisibleTopLevelModuleNames (SmallVectorImpl<Identifier> &names) const ;
Original file line number Diff line number Diff line change 47
47
#include " swift/Syntax/SyntaxArena.h"
48
48
#include " swift/Strings.h"
49
49
#include " swift/Subsystems.h"
50
- #include " clang/AST/Attr.h"
51
- #include " clang/AST/DeclObjC.h"
52
- #include " clang/Lex/HeaderSearch.h"
53
- #include " clang/Lex/Preprocessor.h"
54
50
#include " llvm/ADT/DenseMap.h"
55
51
#include " llvm/ADT/Statistic.h"
56
52
#include " llvm/ADT/StringMap.h"
@@ -1423,12 +1419,6 @@ ModuleDecl *ASTContext::getLoadedModule(Identifier ModuleName) const {
1423
1419
return LoadedModules.lookup (ModuleName);
1424
1420
}
1425
1421
1426
- void ASTContext::getVisibleTopLevelClangModules (
1427
- SmallVectorImpl<clang::Module*> &Modules) const {
1428
- getClangModuleLoader ()->getClangPreprocessor ().getHeaderSearchInfo ().
1429
- collectAllModules (Modules);
1430
- }
1431
-
1432
1422
static AllocationArena getArena (GenericSignature *genericSig) {
1433
1423
if (!genericSig)
1434
1424
return AllocationArena::Permanent;
Original file line number Diff line number Diff line change @@ -72,8 +72,7 @@ Optional<bool> forEachModuleSearchPath(
72
72
return result;
73
73
74
74
// Apple platforms have extra implicit framework search paths:
75
- // $SDKROOT/System/Library/Frameworks/ ; and
76
- // $SDKROOT/Library/Frameworks/
75
+ // $SDKROOT/System/Library/Frameworks/ and $SDKROOT/Library/Frameworks/.
77
76
if (Ctx.LangOpts .Target .isOSDarwin ()) {
78
77
SmallString<128 > scratch;
79
78
scratch = Ctx.SearchPathOpts .SDKPath ;
@@ -154,7 +153,7 @@ void SerializedModuleLoaderBase::collectVisibleTopLevelModuleNamesImpl(
154
153
switch (Kind) {
155
154
case SearchPathKind::Import: {
156
155
// Look for:
157
- // $PATH/{name}.swiftmodule/{arch}.{extension} ; Or
156
+ // $PATH/{name}.swiftmodule/{arch}.{extension} or
158
157
// $PATH/{name}.{extension}
159
158
forEachDirectoryEntryPath (searchPath, [&](StringRef path) {
160
159
auto pathExt = llvm::sys::path::extension (path);
You can’t perform that action at this time.
0 commit comments