This is an archive of the discontinued LLVM Phabricator instance.

[lit] Leverage argparse features to remove some code
ClosedPublic

Authored by yln on Oct 7 2019, 1:49 PM.

Diff Detail

Event Timeline

yln created this revision.Oct 7 2019, 1:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2019, 1:49 PM
rnk accepted this revision.Oct 7 2019, 3:20 PM

lgtm

This revision is now accepted and ready to land.Oct 7 2019, 3:20 PM
llvm/utils/lit/lit/cl_arguments.py
204

It's generally better to catch the conversion error explicitly (here `ValueError`)

211

require*s*

yln marked 4 inline comments as done.Oct 8 2019, 9:40 AM
yln added inline comments.
llvm/utils/lit/lit/cl_arguments.py
204

Done. Thanks!

211

Updated.

yln updated this revision to Diff 223891.Oct 8 2019, 9:40 AM
yln marked 2 inline comments as done.

Address comments.

This revision was automatically updated to reflect the committed changes.