[PATCH] D121590: [C++20][Modules][Driver][HU 3/N] Handle foo.h with -fmodule-header and/or C++ invocation.
Iain Sandoe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 16 03:42:12 PDT 2022
iains added a comment.
In D121590#3381344 <https://reviews.llvm.org/D121590#3381344>, @ChuanqiXu wrote:
> This looks a little bit odd. Is this consistent with GCC too?
It is consistent, GCC does not warm for this - but that was not the primary motivation in this case.
This is simply a convenience feature - considering that there are many C++ projects that use ".h" headers it saves the user from having to add "-xc++-header" in each case.
(since it is a convenience feature, it is non-essential, of course - but IMO useful even now)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121590/new/
https://reviews.llvm.org/D121590
More information about the cfe-commits
mailing list