[libc-commits] [libc] [libc] created integration tests for newhdrgen (PR #97361)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Tue Jul 2 16:41:39 PDT 2024


================
@@ -46,11 +46,13 @@ def yaml_to_classes(yaml_data):
             Enumeration(enum_data["name"], enum_data.get("value", None))
         )
 
-    for function_data in yaml_data.get("functions", []):
+    functions = yaml_data.get("functions", [])
+    sorted_functions = sorted(functions, key=lambda x: x["name"])
+    for function_data in sorted_functions:
         arguments = [arg["type"] for arg in function_data["arguments"]]
         guard = function_data.get("guard", None)
         attributes = function_data.get("attributes", None)
----------------
SchrodingerZhu wrote:

Notice that some attributes are positional dependent. 

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


More information about the libc-commits mailing list