This is an archive of the discontinued LLVM Phabricator instance.

[pseudo-gen] Add -o flag, make --grammar required
ClosedPublic

Authored by thakis on May 25 2022, 5:47 AM.

Details

Summary

Virtually all LLVM tools accept a -o flag, so add one. This will make it
possible to possibly add a --write-if-changed flag later. It also makes it
so that the file isn't partially written if the tool oesn't run successfully.

Marking --grammar as Required allows removing some manual
verification code for it.

Diff Detail

Event Timeline

thakis created this revision.May 25 2022, 5:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2022, 5:47 AM
Herald added a subscriber: mgorny. · View Herald Transcript
thakis requested review of this revision.May 25 2022, 5:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2022, 5:47 AM
hokein accepted this revision.May 25 2022, 5:55 AM

Thanks!

This revision is now accepted and ready to land.May 25 2022, 5:55 AM
thakis edited the summary of this revision. (Show Details)May 25 2022, 6:00 AM
This revision was landed with ongoing or failed builds.May 25 2022, 6:12 AM
This revision was automatically updated to reflect the committed changes.