This is an archive of the discontinued LLVM Phabricator instance.

[clang][cli] NFC: Use Diags to report parsing success/failure
ClosedPublic

Authored by jansvoboda11 on Apr 16 2021, 6:39 AM.

Details

Summary

Success is set to false whenever Diags.Report(diag::err_) is called. Remove the duplication and use Diags as the source of truth when deciding whether to report parsing success/failure.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Apr 16 2021, 6:39 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 16 2021, 6:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Apr 16 2021, 7:33 AM
This revision was landed with ongoing or failed builds.Apr 19 2021, 2:17 AM
This revision was automatically updated to reflect the committed changes.