This patch implements generation of remaining frontend options and tests it by performing parse-generate-parse round trip.
Depends on D96269.
Paths
| Differential D96155
[clang][cli] Generate and round-trip Frontend options ClosedPublic Authored by jansvoboda11 on Feb 5 2021, 9:44 AM.
Details Summary This patch implements generation of remaining frontend options and tests it by performing parse-generate-parse round trip. Depends on D96269.
Diff Detail
Event Timelinejansvoboda11 added a parent revision: D96269: [clang][cli] Look up program action argument in a table.
Comment Actions LGTM, although the description seems incorrect:
In fact, this patch is working with frontend options. Please fix for the commit message. This revision is now accepted and ready to land.Feb 8 2021, 11:33 AM This revision was landed with ongoing or failed builds.Feb 9 2021, 7:40 AM Closed by commit rG5e8a246ac996: [clang][cli] Generate and round-trip Frontend options (authored by jansvoboda11). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 322393 clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/CommandLineSourceLoc.h
clang/include/clang/Serialization/ModuleFileExtension.h
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/TestModuleFileExtension.h
clang/lib/Frontend/TestModuleFileExtension.cpp
|
I'm not sure what the best approach is here.
ModuleFileExtension is an abstract class. When parsing command line arguments, we may instantiate its (only) subclass TestModuleFileExtension.
To generate the argument, we can:
WDYT would be the best approach here?