Skip to content

Commit fd84e72

Browse files
committed
Rename module.map -> module.modulemap in tests
The legacy `module.map` spelling of module map files was deprecated by llvm/llvm-project#75142 and clang expects to remove support for them in the future. Switch all tests to use the supported spelling. Fixes rdar://128431478.
1 parent 1d19e19 commit fd84e72

File tree

17 files changed

+15
-15
lines changed

17 files changed

+15
-15
lines changed

test/ClangImporter/AllowErrors/invalid-pcm.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// RUN: %empty-directory(%t)
22
// RUN: split-file %s %t
33

4-
// RUN: %target-swift-emit-pcm -module-name m -o %t/m.pcm -Xcc -Xclang -Xcc -fallow-pcm-with-compiler-errors -Xcc -Xclang -Xcc -fmodule-format=raw %t/mods/module.map
4+
// RUN: %target-swift-emit-pcm -module-name m -o %t/m.pcm -Xcc -Xclang -Xcc -fallow-pcm-with-compiler-errors -Xcc -Xclang -Xcc -fmodule-format=raw %t/mods/module.modulemap
55
// RUN: %target-swift-frontend -typecheck -verify -Xcc -Xclang -Xcc -fallow-pcm-with-compiler-errors -Xcc -fmodule-file=%t/m.pcm %t/use.swift
66

7-
//--- mods/module.map
7+
//--- mods/module.modulemap
88
module m {
99
header "m.h"
1010
}

test/ClangImporter/Inputs/custom-modules/module.modulemap

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ module ImportAsMember {
113113
}
114114
}
115115

116-
// FIXME: This probably ought to be in a module_private.map, but that causes
117-
// hundreds of clang warnings.
116+
// FIXME: This probably ought to be in a module.private.modulemap, but that
117+
// causes hundreds of clang warnings.
118118
module ImportAsMember_Private {
119119
export *
120120

test/ClangImporter/Inputs/custom-modules/more-custom-modules/module.modulemap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// It is important that this test uses a second module.map file.
1+
// It is important that this test uses a second module.modulemap file.
22
module ImportsMissingHeaderIndirect {
33
header "ImportsMissingHeaderIndirect.h"
44
export *

test/ClangImporter/MixedSource/resolve-cross-language.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22

33
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource) -emit-module -enable-objc-interop -emit-objc-header -o %t %S/Inputs/resolve-cross-language/Base.swift -disable-objc-attr-requires-foundation-module
4-
// RUN: cp %S/Inputs/resolve-cross-language/Base-module.map %t/module.modulemap
4+
// RUN: cp %S/Inputs/resolve-cross-language/Base.modulemap %t/module.modulemap
55
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck -I %t -F %clang-importer-sdk-path/frameworks -F %S/Inputs/resolve-cross-language %s -verify
66

77
import Base

test/Frontend/Inputs/vfs/vfsoverlay.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
'name': 'OUT_DIR', 'type': 'directory',
77
'contents': [
8-
{ 'name': 'module.map', 'type': 'file',
8+
{ 'name': 'module.modulemap', 'type': 'file',
99
'external-contents': 'INPUT_DIR/vfs/a-modulemap'
1010
},
1111
{ 'name': 'VFSMappedModule.h', 'type': 'file',

test/SourceKit/CursorInfo/cursor_generated_interface.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class ASwiftType {
4646
// CHECKA: key.modulename: "LibA"
4747
// CHECKA: key.decl_lang: source.lang.swift
4848

49-
//--- frameworks/LibA.framework/module.map
49+
//--- frameworks/LibA.framework/Modules/module.modulemap
5050
framework module LibA {
5151
header "LibA.h"
5252
export *
@@ -113,7 +113,7 @@ public class CType {}
113113
// CHECKD: key.modulename: "LibD"
114114
// CHECKD: key.decl_lang: source.lang.objc
115115
116-
//--- mods/module.map
116+
//--- mods/module.modulemap
117117
module LibD {
118118
header "LibD.h"
119119
export *

test/SymbolGraph/Relationships/OptionalRequirementOf.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public protocol SwiftProto {
2222
@objc optional func swiftReq()
2323
}
2424

25-
//--- frameworks/OptionalRequirementOf.framework/module.map
25+
//--- frameworks/OptionalRequirementOf.framework/Modules/module.modulemap
2626
framework module OptionalRequirementOf {
2727
header "req.h"
2828
export *

test/stdlib/Inputs/ArrayBridge/module.modulemap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- module.map -------------------------------------------------------===//
1+
//===--- module.modulemap -------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

test/stdlib/Inputs/FoundationBridge/module.modulemap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- module.map -------------------------------------------------------===//
1+
//===--- module.modulemap -------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

test/stdlib/Inputs/Mirror/module.modulemap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- module.map -------------------------------------------------------===//
1+
//===--- module.modulemap -------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

validation-test/Runtime/class_stubs.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %empty-directory(%t)
55
// RUN: %target-build-swift -emit-library -emit-module -o %t/libfirst.dylib -emit-objc-header-path %t/first.h %S/Inputs/class-stubs-from-objc/first.swift -Xlinker -install_name -Xlinker @executable_path/libfirst.dylib -enable-library-evolution
66
// RUN: %target-build-swift -emit-library -o %t/libsecond.dylib -emit-objc-header-path %t/second.h -I %t %S/Inputs/class-stubs-from-objc/second.swift -Xlinker -install_name -Xlinker @executable_path/libsecond.dylib -lfirst -L %t -target %target-next-stable-abi-triple
7-
// RUN: cp %S/Inputs/class-stubs-from-objc/module.map %t/
7+
// RUN: cp %S/Inputs/class-stubs-from-objc/module.modulemap %t/
88
// RUN: xcrun -sdk %sdk %clang %s -I %t -L %t -fmodules -fobjc-arc -o %t/main -lfirst -lsecond -target %target-next-stable-abi-triple
99
// RUN: %target-codesign %t/main %t/libfirst.dylib %t/libsecond.dylib
1010
// RUN: %target-run %t/main %t/libfirst.dylib %t/libsecond.dylib

validation-test/Runtime/class_stubs_weak.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %empty-directory(%t)
55
// RUN: %target-build-swift -emit-library -emit-module -o %t/libfirst.dylib -emit-objc-header-path %t/first.h %S/Inputs/class-stubs-weak/first.swift -Xlinker -install_name -Xlinker @executable_path/libfirst.dylib -enable-library-evolution
66
// RUN: %target-build-swift -emit-library -o %t/libsecond.dylib -emit-objc-header-path %t/second.h -I %t %S/Inputs/class-stubs-weak/second.swift -Xlinker -install_name -Xlinker @executable_path/libsecond.dylib -lfirst -L %t -target %target-next-stable-abi-triple -DBEFORE
7-
// RUN: cp %S/Inputs/class-stubs-weak/module.map %t/
7+
// RUN: cp %S/Inputs/class-stubs-weak/module.modulemap %t/
88

99
// Note: This is the just-built Clang, not the system Clang.
1010
// RUN: xcrun -sdk %sdk %clang %s -I %t -L %t -fmodules -fobjc-arc -o %t/main -lfirst -lsecond -target %target-triple

0 commit comments

Comments
 (0)