Skip to content

Commit 9ff31be

Browse files
authored
[clang][builtins] Add stdckdint.h to the modulemap. (#166230)
All builtin Clang headers need to be covered by the modulemap. This fixes #166173
1 parent 96f0937 commit 9ff31be

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

clang/lib/Headers/module.modulemap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ module _Builtin_stdbool [system] {
253253
export *
254254
}
255255

256+
module _Builtin_stdckdint [system] {
257+
header "stdckdint.h"
258+
export *
259+
}
260+
256261
module _Builtin_stdcountof [system] {
257262
header "stdcountof.h"
258263
export *

clang/lib/Lex/ModuleMap.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ static bool isBuiltinHeaderName(StringRef FileName) {
258258
.Case("stdarg.h", true)
259259
.Case("stdatomic.h", true)
260260
.Case("stdbool.h", true)
261+
.Case("stdckdint.h", true)
261262
.Case("stdcountof.h", true)
262263
.Case("stddef.h", true)
263264
.Case("stdint.h", true)

clang/test/Modules/Inputs/builtin-headers/system-modules.modulemap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ module cstd [system] [no_undeclared_includes] {
4949
export *
5050
}
5151

52+
module stdckdint {
53+
header "stdckdint.h"
54+
export *
55+
}
56+
5257
module stdcountof {
5358
header "stdcountof.h"
5459
export *

clang/test/Modules/builtin-headers.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
@import _Builtin_stdarg;
1818
@import _Builtin_stdatomic;
1919
@import _Builtin_stdbool;
20+
@import _Builtin_stdckdint;
2021
@import _Builtin_stdcountof;
2122
@import _Builtin_stddef;
2223
@import _Builtin_stdint;

0 commit comments

Comments
 (0)