For some use-cases, it might be useful to be able to turn off modules for C++ in -cc1. (The feature is implied by -std=C++20.)
This patch exposes the -fno-cxx-modules option in -cc1.
Paths
| Differential D106864
[clang][cli] Expose -fno-cxx-modules in cc1 ClosedPublic Authored by jansvoboda11 on Jul 27 2021, 5:13 AM.
Details Summary For some use-cases, it might be useful to be able to turn off modules for C++ in -cc1. (The feature is implied by -std=C++20.) This patch exposes the -fno-cxx-modules option in -cc1.
Diff Detail Event Timeline
Comment Actions Add negative test, check error messages.
This revision is now accepted and ready to land.Aug 2 2021, 12:48 PM Closed by commit rG0556138624ed: [clang][cli] Expose -fno-cxx-modules in cc1 (authored by jansvoboda11). · Explain WhyAug 4 2021, 4:46 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 363071 clang/include/clang/Driver/Options.td
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Modules/cxx20-disable.cpp
|
I'm not sure how to best test this. Checking the error messages is not that useful, since they don't make the intent here any clearer: