[libc-commits] [libc] [libc][docgen] simplify posix links (PR #119595)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Dec 12 10:45:09 PST 2024


================
@@ -79,8 +83,8 @@ def check_api(header: Header, api: Dict):
 
         fns = api["functions"]
         for name, obj in fns.items():
-            if not (cdef in obj or pdef in obj):
-                err = f'error: function {name} does not contain at least one required property: "{cdef}" or "{pdef}"'
+          if (not any(k in obj.keys() for k in possible_keys)):
----------------
nickdesaulniers wrote:

c9506926d1b1

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


More information about the libc-commits mailing list