In ToolInvocation::run, the driver -> cc1 command-line transformation uses DiagnosticsEngine that wasn't completely initialized. This patch ensures ProcessWarningOptions(DiagnosticsEngine&, const DiagnosticOptions &) is called.
Depends on D108982.
Paths
| Differential D108974
[clang][tooling] Properly initialize DiagnosticsEngine for cc1 command-line construction ClosedPublic Authored by jansvoboda11 on Aug 31 2021, 1:28 AM.
Details Summary In ToolInvocation::run, the driver -> cc1 command-line transformation uses DiagnosticsEngine that wasn't completely initialized. This patch ensures ProcessWarningOptions(DiagnosticsEngine&, const DiagnosticOptions &) is called. Depends on D108982.
Diff Detail
Event Timelinejansvoboda11 created this revision.
jansvoboda11 removed a child revision: D108976: [clang][tooling] Accept custom diagnostic options in ToolInvocation.Sep 2 2021, 7:07 AM jansvoboda11 added a parent revision: D108982: [clang][deps] Use correct DiagnosticOptions for command-line handling. jansvoboda11 added a child revision: D109158: [clang][deps] Test diagnostic options are being respected.Sep 2 2021, 7:52 AM This revision is now accepted and ready to land.Sep 2 2021, 11:00 AM Comment Actions (If you can squash the changes from https://reviews.llvm.org/D109158 into here, even better.) This revision was landed with ongoing or failed builds.Sep 10 2021, 4:54 AM Closed by commit rG8dc76ab7995b: [clang][tooling] Properly initialize DiagnosticsEngine for cc1 command-line… (authored by jansvoboda11). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 371884 clang/lib/Tooling/Tooling.cpp
clang/unittests/Tooling/ToolingTest.cpp
|