Reapply "Fix regression in behavior of clang -x c++-header -fmodule-name=XXX"
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Nov 2018 12:46:02 +0000 (12:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Nov 2018 12:46:02 +0000 (12:46 +0000)
commit5904c41ed26dd1031acb0dbc991c3fd272ceb21f
treef4b460339416b1717630eda20bc8e71b8a1a8c6f
parent5f60861be706191866341c52b6ce5bbcb1c024ed
Reapply "Fix regression in behavior of clang -x c++-header -fmodule-name=XXX"

This reverts commit r345963. We have a path forward now.

Original commit message:
The driver accidentally stopped passing the input filenames on to -cc1
in this mode due to confusion over what action was being requested.

This change also fixes a couple of crashes I encountered when passing
multiple files to such a -cc1 invocation.

llvm-svn: 346130
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Lex/ModuleMap.cpp
clang/test/Driver/header-module.cpp
clang/test/Modules/strict-decluse-headers.cpp [new file with mode: 0644]