forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc] Use idiomatic main() function in newhdrgen/yaml_to_classes.py (l…
…lvm#113419) This changes the entry-point Python script of newhdrgen to use the idiomatic main() function of no arguments that does the whole job of the script. This replaces the unusual pattern of having an idiosyncratic main(...) signature and having the script's direct code do argument parsing outside the main function. The idiomatic pattern makes it possible to usefully wrap the script in Python and still use its full command-line functionality.
- Loading branch information
1 parent
eaa3dcf
commit 3a47ce4
Showing
1 changed file
with
29 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters