Skip to content

Commit 37ce275

Browse files
committed
[clang][modules] Deprecate module.map in favor of module.modulemap
This patch deprecates `module.map` in favor of `module.modulemap`, which has been the preferred form since 2014. The eventual goal is to remove support for `module.map` to reduce the number of stats Clang needs to do while searching for module map files. This patch touches a lot of files, but the majority of them are just renaming tests or references to the file in comments or documentation. The relevant files are: * lib/Lex/HeaderSearch.cpp * include/clang/Basic/DiagnosticGroups.td * include/clang/Basic/DiagnosticLexKinds.td
1 parent 7a378d8 commit 37ce275

File tree

143 files changed

+253
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+253
-222
lines changed

clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,14 +1917,14 @@ TEST_F(SymbolCollectorTest, UndefOfModuleMacro) {
19171917
#undef X
19181918
)cpp";
19191919
TU.AdditionalFiles["foo.h"] = "#define X 1";
1920-
TU.AdditionalFiles["module.map"] = R"cpp(
1920+
TU.AdditionalFiles["module.modulemap"] = R"cpp(
19211921
module foo {
19221922
header "foo.h"
19231923
export *
19241924
}
19251925
)cpp";
19261926
TU.ExtraArgs.push_back("-fmodules");
1927-
TU.ExtraArgs.push_back("-fmodule-map-file=" + testPath("module.map"));
1927+
TU.ExtraArgs.push_back("-fmodule-map-file=" + testPath("module.modulemap"));
19281928
TU.OverlayRealFileSystemForModules = true;
19291929

19301930
TU.build();

clang-tools-extra/docs/modularize.rst

Lines changed: 1 addition & 1 deletion

clang-tools-extra/modularize/Modularize.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@
5151
// to the header list file directory. Use -prefix to specify a
5252
// different directory.
5353
// -module-map-path=(module map)
54-
// Skip the checks, and instead act as a module.map generation
54+
// Skip the checks, and instead act as a module.modulemap generation
5555
// assistant, generating a module map file based on the header list.
5656
// An optional "-root-module=(rootName)" argument can specify a root
57-
// module to be created in the generated module.map file. Note that
58-
// you will likely need to edit this file to suit the needs of your
59-
// headers.
57+
// module to be created in the generated module.modulemap file. Note
58+
// that you will likely need to edit this file to suit the needs of
59+
// your headers.
6060
// -problem-files-list=(problem files list file name)
6161
// For use only with module map assistant. Input list of files that
6262
// have problems with respect to modules. These will still be
6363
// included in the generated module map, but will be marked as
6464
// "excluded" headers.
6565
// -root-module=(root module name)
66-
// Specifies a root module to be created in the generated module.map
67-
// file.
66+
// Specifies a root module to be created in the generated
67+
// module.modulemap file.
6868
// -block-check-header-list-only
6969
// Only warn if #include directives are inside extern or namespace
7070
// blocks if the included header is in the header list.

clang-tools-extra/modularize/ModularizeUtilities.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ std::error_code ModularizeUtilities::loadAllHeaderListsAndDependencies() {
103103

104104
// Do coverage checks.
105105
// For each loaded module map, do header coverage check.
106-
// Starting from the directory of the module.map file,
106+
// Starting from the directory of the module.modulemap file,
107107
// Find all header files, optionally looking only at files
108108
// covered by the include path options, and compare against
109-
// the headers referenced by the module.map file.
109+
// the headers referenced by the module.modulemap file.
110110
// Display warnings for unaccounted-for header files.
111111
// Returns 0 if there were no errors or warnings, 1 if there
112112
// were warnings, 2 if any other problem, such as a bad

clang-tools-extra/modularize/ModularizeUtilities.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ class ModularizeUtilities {
8989

9090
/// Do coverage checks.
9191
/// For each loaded module map, do header coverage check.
92-
/// Starting from the directory of the module.map file,
92+
/// Starting from the directory of the module.modulemap file,
9393
/// Find all header files, optionally looking only at files
9494
/// covered by the include path options, and compare against
95-
/// the headers referenced by the module.map file.
95+
/// the headers referenced by the module.modulemap file.
9696
/// Display warnings for unaccounted-for header files.
9797
/// \param IncludePaths The include paths to check for files.
9898
/// (Note that other directories above these paths are ignored.

clang-tools-extra/test/modularize/Inputs/CompileError/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// module.map
1+
// module.modulemap
22

33
module Level1A {
44
header "Level1A.h"

clang-tools-extra/test/modularize/Inputs/CoverageNoProblems/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// module.map
1+
// module.modulemap
22

33
module Level1A {
44
header "Includes1/Level1A.h"

clang-tools-extra/test/modularize/Inputs/CoverageProblems/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// module.map
1+
// module.modulemap
22

33
module Level1A {
44
header "Level1A.h"

clang-tools-extra/test/modularize/Inputs/MissingHeader/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// module.map
1+
// module.modulemap
22

33
module Level1A {
44
header "Level1A.h"

clang-tools-extra/test/pp-trace/Inputs/module.map renamed to clang-tools-extra/test/pp-trace/Inputs/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// module.map
1+
// module.modulemap
22

33
module Level1A {
44
header "Level1A.h"

clang/include/clang-c/BuildSystem.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ CINDEX_LINKAGE void clang_free(void *buffer);
9595
CINDEX_LINKAGE void clang_VirtualFileOverlay_dispose(CXVirtualFileOverlay);
9696

9797
/**
98-
* Object encapsulating information about a module.map file.
98+
* Object encapsulating information about a module.modulemap file.
9999
*/
100100
typedef struct CXModuleMapDescriptorImpl *CXModuleMapDescriptor;
101101

@@ -109,15 +109,15 @@ CINDEX_LINKAGE CXModuleMapDescriptor
109109
clang_ModuleMapDescriptor_create(unsigned options);
110110

111111
/**
112-
* Sets the framework module name that the module.map describes.
112+
* Sets the framework module name that the module.modulemap describes.
113113
* \returns 0 for success, non-zero to indicate an error.
114114
*/
115115
CINDEX_LINKAGE enum CXErrorCode
116116
clang_ModuleMapDescriptor_setFrameworkModuleName(CXModuleMapDescriptor,
117117
const char *name);
118118

119119
/**
120-
* Sets the umbrella header name that the module.map describes.
120+
* Sets the umbrella header name that the module.modulemap describes.
121121
* \returns 0 for success, non-zero to indicate an error.
122122
*/
123123
CINDEX_LINKAGE enum CXErrorCode

clang/include/clang/Basic/DiagnosticGroups.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def : DiagGroup<"auto-import">;
3939
def FrameworkHdrQuotedInclude : DiagGroup<"quoted-include-in-framework-header">;
4040
def FrameworkIncludePrivateFromPublic :
4141
DiagGroup<"framework-include-private-from-public">;
42+
def DeprecatedModuleDotMap : DiagGroup<"deprecated-module-dot-map">;
4243
def FrameworkHdrAtImport : DiagGroup<"atimport-in-framework-header">;
4344
def CXX14BinaryLiteral : DiagGroup<"c++14-binary-literal">;
4445
def CXXPre14CompatBinaryLiteral : DiagGroup<"c++98-c++11-compat-binary-literal">;

clang/include/clang/Basic/DiagnosticLexKinds.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,9 @@ def warn_quoted_include_in_framework_header : Warning<
869869
def warn_framework_include_private_from_public : Warning<
870870
"public framework header includes private framework header '%0'"
871871
>, InGroup<FrameworkIncludePrivateFromPublic>, DefaultIgnore;
872+
def warn_deprecated_module_dot_map : Warning<
873+
"'%0' as a module map name is deprecated, rename it to %select{module.modulemap|module.private.modulemap}1%select{| in the 'Modules' directory of the framework}2">,
874+
InGroup<DeprecatedModuleDotMap>;
872875

873876
def remark_pp_include_directive_modular_translation : Remark<
874877
"treating #%select{include|import|include_next|__include_macros}0 as an "

clang/lib/Lex/HeaderSearch.cpp

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,9 @@ bool HeaderSearch::findUsableModuleForFrameworkHeader(
16101610
}
16111611

16121612
static const FileEntry *getPrivateModuleMap(const FileEntry *File,
1613-
FileManager &FileMgr) {
1613+
FileManager &FileMgr,
1614+
DirectoryEntryRef Dir,
1615+
DiagnosticsEngine &Diags) {
16141616
StringRef Filename = llvm::sys::path::filename(File->getName());
16151617
SmallString<128> PrivateFilename(File->getDir()->getName());
16161618
if (Filename == "module.map")
@@ -1619,8 +1621,12 @@ static const FileEntry *getPrivateModuleMap(const FileEntry *File,
16191621
llvm::sys::path::append(PrivateFilename, "module.private.modulemap");
16201622
else
16211623
return nullptr;
1622-
if (auto File = FileMgr.getFile(PrivateFilename))
1623-
return *File;
1624+
if (auto PMMFile = FileMgr.getFile(PrivateFilename)) {
1625+
if (Filename == "module.map")
1626+
Diags.Report(diag::warn_deprecated_module_dot_map)
1627+
<< PrivateFilename << 1 << Dir.getName().endswith(".framework");
1628+
return *PMMFile;
1629+
}
16241630
return nullptr;
16251631
}
16261632

@@ -1691,7 +1697,8 @@ HeaderSearch::loadModuleMapFileImpl(const FileEntry *File, bool IsSystem,
16911697
}
16921698

16931699
// Try to load a corresponding private module map.
1694-
if (const FileEntry *PMMFile = getPrivateModuleMap(File, FileMgr)) {
1700+
if (const FileEntry *PMMFile =
1701+
getPrivateModuleMap(File, FileMgr, Dir, Diags)) {
16951702
if (ModMap.parseModuleMapFile(PMMFile, IsSystem, Dir)) {
16961703
LoadedModuleMaps[File] = false;
16971704
return LMM_InvalidModuleMap;
@@ -1715,11 +1722,14 @@ HeaderSearch::lookupModuleMapFile(const DirectoryEntry *Dir, bool IsFramework) {
17151722
if (auto F = FileMgr.getFile(ModuleMapFileName))
17161723
return *F;
17171724

1718-
// Continue to allow module.map
1725+
// Continue to allow module.map, but warn it's deprecated.
17191726
ModuleMapFileName = Dir->getName();
17201727
llvm::sys::path::append(ModuleMapFileName, "module.map");
1721-
if (auto F = FileMgr.getFile(ModuleMapFileName))
1728+
if (auto F = FileMgr.getFile(ModuleMapFileName)) {
1729+
Diags.Report(diag::warn_deprecated_module_dot_map)
1730+
<< ModuleMapFileName << 0 << IsFramework;
17221731
return *F;
1732+
}
17231733

17241734
// For frameworks, allow to have a private module map with a preferred
17251735
// spelling when a public module map is absent.

clang/test/Index/Inputs/vfsoverlay.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
'roots': [
44
{ 'name': 'OUT_DIR', 'type': 'directory',
55
'contents': [
6-
{ 'name': 'module.map', 'type': 'file',
7-
'external-contents': 'INPUT_DIR/module.map'
6+
{ 'name': 'module.modulemap', 'type': 'file',
7+
'external-contents': 'INPUT_DIR/module.modulemap'
88
},
99
{ 'name': 'ModuleNeedsVFS.h', 'type': 'file',
1010
'external-contents': 'INPUT_DIR/module_needs_vfs.h'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
void will_be_found1(void);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module module_map {
2+
header "a.h"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module module_map.Private {
2+
header "private.h"
3+
}

clang/test/Modules/Inputs/ModuleMapLocations/Module_Map/private.h

Whitespace-only changes.

clang/test/Modules/Inputs/ModuleMapLocations/Module_Map_F.framework/Headers/a.h

Whitespace-only changes.

clang/test/Modules/Inputs/ModuleMapLocations/Module_Map_F.framework/PrivateHeaders/private.h

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
framework module Module_Map_F {
2+
header "a.h"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
explicit framework module Module_Map_F.Private {
2+
header "private.h"
3+
}

clang/test/Modules/concept_differ.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// RUN: mkdir %t
33
// RUN: split-file %s %t
44
//
5-
// RUN: %clang_cc1 -x c++ -std=c++20 -fmodules -fmodules-cache-path=%t -fmodule-map-file=%t/module.map %t/foo.cpp -verify
5+
// RUN: %clang_cc1 -x c++ -std=c++20 -fmodules -fmodules-cache-path=%t -fmodule-map-file=%t/module.modulemap %t/foo.cpp -verify
66

7-
//--- module.map
7+
//--- module.modulemap
88
module "foo" {
99
export *
1010
header "foo.h"

clang/test/Modules/config_macros.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
@import config; // expected-warning{{definition of configuration macro 'WANT_BAR' has no effect on the import of 'config'; pass '-DWANT_BAR=...' on the command line to configure the module}}
2424

2525
// RUN: rm -rf %t
26-
// RUN: %clang_cc1 -std=c99 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -DWANT_FOO=1 -emit-module -fmodule-name=config %S/Inputs/module.map
26+
// RUN: %clang_cc1 -std=c99 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -DWANT_FOO=1 -emit-module -fmodule-name=config %S/Inputs/module.modulemap
2727
// RUN: %clang_cc1 -std=c99 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -DWANT_FOO=1 %s -verify
2828

clang/test/Modules/crash-vfs-ivfsoverlay.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
// CHECKYAML: 'contents': [
4242
// CHECKYAML-NEXT: {
4343
// CHECKYAML-NEXT: 'type': 'file',
44-
// CHECKYAML-NEXT: 'name': "module.map",
44+
// CHECKYAML-NEXT: 'name': "module.modulemap",
4545
// CHECKYAML-NEXT: 'external-contents': "/[[OTHERPATH:.*]]/actual_module2.map"

clang/test/Modules/crash-vfs-path-symlink-component.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
// CHECKYAML-NEXT: 'contents': [
5050
// CHECKYAML-NEXT: {
5151
// CHECKYAML-NEXT: 'type': 'file',
52-
// CHECKYAML-NEXT: 'name': "module.map",
53-
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/i/usr/include/module.map"
52+
// CHECKYAML-NEXT: 'name': "module.modulemap",
53+
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/i/usr/include/module.modulemap"
5454
// CHECKYAML-NEXT: },
5555

5656
// Test that by using the previous generated YAML file clang is able to find the

clang/test/Modules/crash-vfs-path-traversal.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
// CHECKYAML-NEXT: 'contents': [
4747
// CHECKYAML-NEXT: {
4848
// CHECKYAML-NEXT: 'type': 'file',
49-
// CHECKYAML-NEXT: 'name': "module.map",
50-
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.map"
49+
// CHECKYAML-NEXT: 'name': "module.modulemap",
50+
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.modulemap"
5151
// CHECKYAML-NEXT: },
5252

5353
// Replace the paths in the YAML files with relative ".." traversals

clang/test/Modules/crash-vfs-relative-incdir.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
// CHECKYAML-NEXT: 'contents': [
4242
// CHECKYAML-NEXT: {
4343
// CHECKYAML-NEXT: 'type': 'file',
44-
// CHECKYAML-NEXT: 'name': "module.map",
44+
// CHECKYAML-NEXT: 'name': "module.modulemap",
4545
// CHECKYAML-NOT: 'external-contents': "{{[^ ]*}}.cache
46-
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.map"
46+
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.modulemap"
4747
// CHECKYAML-NEXT: },
4848

4949
// Run the reproducer script - regular exit code is enough to test it works.

clang/test/Modules/crash-vfs-relative-overlay.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
// CHECKYAML-NEXT: 'contents': [
4545
// CHECKYAML-NEXT: {
4646
// CHECKYAML-NEXT: 'type': 'file',
47-
// CHECKYAML-NEXT: 'name': "module.map",
47+
// CHECKYAML-NEXT: 'name': "module.modulemap",
4848
// CHECKYAML-NOT: 'external-contents': "{{[^ ]*}}.cache
49-
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.map"
49+
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.modulemap"
5050
// CHECKYAML-NEXT: },
5151

5252
// Test that reading the YAML file will yield the correct path after

clang/test/Modules/crash-vfs-run-reproducer.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
// CHECKYAML-NEXT: 'contents': [
4242
// CHECKYAML-NEXT: {
4343
// CHECKYAML-NEXT: 'type': 'file',
44-
// CHECKYAML-NEXT: 'name': "module.map",
44+
// CHECKYAML-NEXT: 'name': "module.modulemap",
4545
// CHECKYAML-NOT: 'external-contents': "{{[^ ]*}}.cache
46-
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.map"
46+
// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.modulemap"
4747
// CHECKYAML-NEXT: },
4848

4949
// Run the reproducer script - regular exit code is enough to test it works.

clang/test/Modules/declare-use-compatible.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Used module not built with -decluse.
22
// RUN: rm -rf %t
33
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodule-name=XB -emit-module \
4-
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm
4+
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.modulemap -o %t/b.pcm
55
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
66
// RUN: -fmodules-decluse \
77
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s
@@ -10,14 +10,14 @@
1010
// RUN: rm -rf %t
1111
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodule-name=XB -emit-module \
1212
// RUN: -fmodules-decluse \
13-
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm
13+
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.modulemap -o %t/b.pcm
1414
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
1515
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s
1616
//
1717
// Used module not built with -decluse.
1818
// RUN: rm -rf %t
1919
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodule-name=XB -emit-module \
20-
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm
20+
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.modulemap -o %t/b.pcm
2121
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
2222
// RUN: -fmodules-strict-decluse \
2323
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s
@@ -26,7 +26,7 @@
2626
// RUN: rm -rf %t
2727
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodule-name=XB -emit-module \
2828
// RUN: -fmodules-strict-decluse \
29-
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm
29+
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.modulemap -o %t/b.pcm
3030
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
3131
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s
3232

clang/test/Modules/dependency-gen-pch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: FileCheck %s < %t.d
77
// CHECK: dependency-gen-pch.m.o
88
// CHECK-NEXT: dependency-gen-pch.m
9-
// CHECK-NEXT: Inputs{{.}}module.map
9+
// CHECK-NEXT: Inputs{{.}}module.modulemap
1010
// CHECK-NEXT: diamond_top.pcm
1111
// CHECK-NEXT: Inputs{{.}}diamond_top.h
1212

clang/test/Modules/dependency-gen.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
// RUN: %clang_cc1 -x objective-c -isystem %S/Inputs/System/usr/include -dependency-file %t.d.1 -MT %s.o -I %S/Inputs -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-mcp %s
55
// RUN: FileCheck %s < %t.d.1
66
// CHECK: dependency-gen.m
7-
// CHECK: Inputs{{.}}module.map
7+
// CHECK: Inputs{{.}}module.modulemap
88
// CHECK: Inputs{{.}}diamond_top.h
9-
// CHECK-NOT: usr{{.}}include{{.}}module.map
9+
// CHECK-NOT: usr{{.}}include{{.}}module.modulemap
1010
// CHECK-NOT: stdint.h
1111

1212

1313
// RUN: %clang_cc1 -x objective-c -isystem %S/Inputs/System/usr/include -dependency-file %t.d.2 -MT %s.o -I %S/Inputs -sys-header-deps -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-mcp %s
1414
// RUN: FileCheck %s -check-prefix=CHECK-SYS < %t.d.2
1515
// CHECK-SYS: dependency-gen.m
16-
// CHECK-SYS: Inputs{{.}}module.map
16+
// CHECK-SYS: Inputs{{.}}module.modulemap
1717
// CHECK-SYS: Inputs{{.}}diamond_top.h
18-
// CHECK-SYS: usr{{.}}include{{.}}module.map
18+
// CHECK-SYS: usr{{.}}include{{.}}module.modulemap
1919
// CHECK-SYS: stdint.h
2020

2121
#import "diamond_top.h"

0 commit comments

Comments
 (0)