aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorIan Anderson <iana@apple.com>2022-08-30 13:09:21 -0700
committerIan Anderson <iana@apple.com>2022-08-30 14:57:15 -0700
commit260fb2bc3f79019cae4e182a64c8752d3d25049e (patch)
tree131e3bd4e0d2dcbd1d590d67a45b26647559a74f /clang/lib/Lex/ModuleMap.cpp
parent4df696fbe9ae872c5d1813d516c233cd3c11b64e (diff)
downloadllvm-260fb2bc3f79019cae4e182a64c8752d3d25049e.zip
llvm-260fb2bc3f79019cae4e182a64c8752d3d25049e.tar.gz
llvm-260fb2bc3f79019cae4e182a64c8752d3d25049e.tar.bz2
[clang][modules] Don't hard code [no_undeclared_includes] for the Darwin module
The Darwin module has specified [no_undeclared_includes] for at least five years now, there's no need to hard code it in the compiler. Reviewed By: ributzka, Bigcheese Differential Revision: https://reviews.llvm.org/D132971
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r--clang/lib/Lex/ModuleMap.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp
index 3698a8c..87a90bc 100644
--- a/clang/lib/Lex/ModuleMap.cpp
+++ b/clang/lib/Lex/ModuleMap.cpp
@@ -2026,8 +2026,7 @@ void ModuleMapParser::parseModuleDecl() {
ActiveModule->IsSystem = true;
if (Attrs.IsExternC)
ActiveModule->IsExternC = true;
- if (Attrs.NoUndeclaredIncludes ||
- (!ActiveModule->Parent && ModuleName == "Darwin"))
+ if (Attrs.NoUndeclaredIncludes)
ActiveModule->NoUndeclaredIncludes = true;
ActiveModule->Directory = Directory;