llvm-project/clang/lib/Driver
Iain Sandoe 4c4ff004a2 [C++20][Modules][Driver][HU 2/N] Add fmodule-header, fmodule-header=
These command-line flags are alternates to providing the -x
c++-*-header indicators that we are building a header unit.

Act on fmodule-header= for headers on the c/l:

If we have x.hh -fmodule-header, then we should treat that header
as a header unit input (equivalent to -xc++-header-unit-header x.hh).

Likewise, for fmodule-header={user,system} the source should be now
recognised as a header unit input (since this can affect the job list
that we need).

It's not practical to recognise a header without any suffix so
-fmodule-header=system foo isn't going to happen. Although
-fmodule-header=system foo.hh will work OK.  However we can make it
work if the user indicates that the item without a suffix is a valid
header. (so -fmodule-header=system -xc++-header vector)

Differential Revision: https://reviews.llvm.org/D121589
2022-04-22 14:14:19 +01:00
..
ToolChains [cc1as] Add support for emitting the build version load command for -darwin-target-variant 2022-04-22 08:38:07 -04:00
Action.cpp Ensure -extract-api handles multiple headers correctly 2022-03-21 21:04:47 +00:00
CMakeLists.txt [HLSL][clang][Driver] Support target profile command line option. 2022-04-15 14:18:18 -05:00
Compilation.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
Distro.cpp Add support of the next Ubuntu (Ubuntu 22.04 - Jammy Jellyfish) 2021-10-23 23:55:50 +02:00
Driver.cpp [C++20][Modules][Driver][HU 2/N] Add fmodule-header, fmodule-header= 2022-04-22 14:14:19 +01:00
DriverOptions.cpp
Job.cpp [Clang] Own the CommandLineArgs in CodeGenOptions 2021-12-21 17:41:35 -05:00
Multilib.cpp [clang] Use llvm::erase_if (NFC) 2021-10-17 13:50:29 -07:00
OptionUtils.cpp
Phases.cpp
SanitizerArgs.cpp [Driver] Prepend - to option name in err_drv_unsupported_option_argument diagnostic 2022-04-10 01:44:53 -07:00
Tool.cpp [clang][driver] NFC: Move InputInfo.h from lib to include 2021-07-27 09:17:39 +02:00
ToolChain.cpp [HLSL][clang][Driver] Support target profile command line option. 2022-04-15 14:18:18 -05:00
Types.cpp [C++20][Modules][Driver][HU 1/N] Initial handling for -xc++-{system,user}-header. 2022-04-22 09:24:29 +01:00
XRayArgs.cpp Reapply [xray] add support for hexagon 2021-12-10 05:32:28 -08:00