aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2021-10-08 17:10:18 -0700
committerVolodymyr Sapsai <vsapsai@apple.com>2021-10-15 12:46:51 -0700
commitd0e7bdc208491fd5d4245878c1ec2962694e2baa (patch)
tree6513c744d0b8439cbe30341288934eb611587e23 /clang/lib/Lex/ModuleMap.cpp
parent4a1d63d7d09ff63ccbcb8831972c00dfc9600998 (diff)
downloadllvm-d0e7bdc208491fd5d4245878c1ec2962694e2baa.zip
llvm-d0e7bdc208491fd5d4245878c1ec2962694e2baa.tar.gz
llvm-d0e7bdc208491fd5d4245878c1ec2962694e2baa.tar.bz2
[modules] Make a module map referenced by a system map a system one too.
Mimic the behavior of including headers where a system includer makes an includee a system header too. rdar://84049469 Differential Revision: https://reviews.llvm.org/D111476
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r--clang/lib/Lex/ModuleMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp
index 53b824b..08381d0 100644
--- a/clang/lib/Lex/ModuleMap.cpp
+++ b/clang/lib/Lex/ModuleMap.cpp
@@ -2173,7 +2173,7 @@ void ModuleMapParser::parseExternModuleDecl() {
}
if (auto File = SourceMgr.getFileManager().getFile(FileNameRef))
Map.parseModuleMapFile(
- *File, /*IsSystem=*/false,
+ *File, IsSystem,
Map.HeaderInfo.getHeaderSearchOpts().ModuleMapFileHomeIsCwd
? Directory
: (*File)->getDir(),