[all-commits] [llvm/llvm-project] 2e6d45: [libc] Use idiomatic main() function in newhdrgen/...
Roland McGrath via All-commits
all-commits at lists.llvm.org
Thu Oct 24 22:18:19 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2e6d451d1565814415e2692ef8e5c3942d4c11a2
https://github.com/llvm/llvm-project/commit/2e6d451d1565814415e2692ef8e5c3942d4c11a2
Author: Roland McGrath <mcgrathr at google.com>
Date: 2024-10-24 (Thu, 24 Oct 2024)
Changed paths:
M libc/newhdrgen/yaml_to_classes.py
Log Message:
-----------
[libc] Use idiomatic main() function in newhdrgen/yaml_to_classes.py (#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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list