This is an archive of the discontinued LLVM Phabricator instance.

[clang][tooling] Accept custom diagnostic options in ToolInvocation
ClosedPublic

Authored by jansvoboda11 on Aug 31 2021, 1:39 AM.

Details

Summary

This patch allows the clients of ToolInvocation to provide custom diagnostic options to be used during driver -> cc1 command-line transformation and parsing.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Aug 31 2021, 1:39 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2021, 1:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Reorder patches.

jansvoboda11 retitled this revision from [clang][tooling] Allow providing custom diagnostic options to ToolInvocation to [clang][tooling] Accept custom diagnostic options in ToolInvocation.Sep 2 2021, 6:51 AM
jansvoboda11 edited the summary of this revision. (Show Details)

Tests that cover this functionality were moved into a follow-up patch D108974. The reason is to avoid temporary regression pointed out here.

Could you add a test case for this change? Maybe a unit test?

Could you add a test case for this change? Maybe a unit test?

Ah I see, you mentioned that the tests are in a follow-up patch. Sorry about that.

arphaman accepted this revision.Sep 2 2021, 8:36 AM
This revision is now accepted and ready to land.Sep 2 2021, 8:36 AM
dexonsmith accepted this revision.Sep 2 2021, 11:02 AM

Tests that cover this functionality were moved into a follow-up patch D108974. The reason is to avoid temporary regression pointed out here.

Please document in the commit message that tests are coming later and why. With that, LGTM too.

This revision was landed with ongoing or failed builds.Sep 10 2021, 4:31 AM
This revision was automatically updated to reflect the committed changes.