This is an archive of the discontinued LLVM Phabricator instance.

[clang][tooling] Allow -cc1 arguments in ToolInvocation
ClosedPublic

Authored by benlangmuir on Aug 24 2022, 3:42 PM.

Details

Summary

ToolInvocation is useful even if you already have a -cc1 invocation,
since it provides a standard way to setup diagnostics, parse arguments,
and handoff to a ToolAction. So teach it to support -cc1 commands by
skipping the driver bits.

Diff Detail

Event Timeline

benlangmuir created this revision.Aug 24 2022, 3:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2022, 3:42 PM
benlangmuir requested review of this revision.Aug 24 2022, 3:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2022, 3:42 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jansvoboda11 accepted this revision.Aug 24 2022, 3:49 PM

LGTM, thanks!

This revision is now accepted and ready to land.Aug 24 2022, 3:49 PM
This revision was landed with ongoing or failed builds.Aug 24 2022, 7:51 PM
This revision was automatically updated to reflect the committed changes.