It's a chunk from D26390
It gets rid of duplicate codes for command line parsing. Introduce validation for each command. And program entry points are no longer receives parameters from commands.
Paths
| Differential D30601
[scan-build-py] move argument parsing into separate module ClosedPublic Authored by rizsotto.mailinglist on Mar 3 2017, 8:22 PM.
Details Summary It's a chunk from D26390 It gets rid of duplicate codes for command line parsing. Introduce validation for each command. And program entry points are no longer receives parameters from commands.
Diff Detail Event TimelineComment Actions Thanks for the upstreaming the patch! Comments inline. Also: please make comments consistently into prose, including proper capitalization.
Comment Actions As Laszlo noted in in D30600, capitalizing while upstreaming is making diffing with his out-of-tree sources more noisy. We can hold off on consistent capitalization until later. But we do need comments in prose, otherwise we can't tell what the intent of the upstreamed patch is and so can't review it properly. Comment Actions Thanks Devin for the comments. I'm happy to have your improvement suggestions crafted, scratched. It helps me to understand what part is debated... See my replies inlined.
This revision is now accepted and ready to land.Mar 8 2017, 7:17 AM Closed by commit rL297307: [scan-build-py] move argument parsing into separate module (authored by • rizsotto). · Explain WhyMar 8 2017, 1:31 PM This revision was automatically updated to reflect the committed changes. Comment Actions Thanks Devin. I forgot to add the arguments.py module at the commit, so this does not show it. But made another commit which has it. Sorry.
Revision Contents
Diff 90566 tools/scan-build-py/bin/analyze-build
tools/scan-build-py/bin/intercept-build
tools/scan-build-py/bin/scan-build
tools/scan-build-py/libscanbuild/analyze.py
tools/scan-build-py/libscanbuild/arguments.py
tools/scan-build-py/libscanbuild/intercept.py
|
This is pretty confusing because the 'analyze()' function doesn't actually analyze anything. (Same with 'scan') See my comments below for suggestions on how to make this more clear.