Skip to content

Commit d3ab1ea

Browse files
authored
Merge pull request #7307 from apple/revert-7256-dev/module.map-depr
Revert "[clang][modules] Deprecate module.map in favor of module.modulemap"
2 parents 674f519 + 63a0ff7 commit d3ab1ea

File tree

143 files changed

+222
-253
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

+222
-253
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.modulemap"] = R"cpp(
1920+
TU.AdditionalFiles["module.map"] = 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.modulemap"));
1927+
TU.ExtraArgs.push_back("-fmodule-map-file=" + testPath("module.map"));
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.modulemap generation
54+
// Skip the checks, and instead act as a module.map 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.modulemap file. Note
58-
// that you will likely need to edit this file to suit the needs of
59-
// your headers.
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.
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
67-
// module.modulemap file.
66+
// Specifies a root module to be created in the generated module.map
67+
// 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.modulemap file,
106+
// Starting from the directory of the module.map 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.modulemap file.
109+
// the headers referenced by the module.map 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.modulemap file,
92+
/// Starting from the directory of the module.map 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.modulemap file.
95+
/// the headers referenced by the module.map 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.modulemap
1+
// module.map
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.modulemap
1+
// module.map
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.modulemap
1+
// module.map
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.modulemap
1+
// module.map
22

33
module Level1A {
44
header "Level1A.h"

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

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

33
module Level1A {
44
header "Level1A.h"

0 commit comments

Comments
 (0)