[libc-commits] [libc] [libc] implemented add_function to yaml hdrgen (PR #97079)

via libc-commits libc-commits at lists.llvm.org
Fri Jun 28 10:49:50 PDT 2024


================
@@ -103,16 +107,63 @@ def fill_public_api(header_str, h_def_content):
     return h_def_content.replace("%%public_api()", header_str, 1)
 
 
-def main(yaml_file, h_def_file, output_dir):
+def add_function_to_yaml(yaml_file, function_details):
----------------
aaryanshukla wrote:

It was mainly a question of usability. CLI arguments are inherently string-based, so it would make sense to make the CLI a list of strings rather than some type of complex object. 

https://github.com/llvm/llvm-project/pull/97079


More information about the libc-commits mailing list