[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:04 PST 2024


================
@@ -65,8 +69,8 @@ def check_api(header: Header, api: Dict):
         macros = api["macros"]
 
         for name, obj in macros.items():
-            if not (cdef in obj or pdef in obj):
-                err = f'error: Macro {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:

good catch! c9506926d1b1

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


More information about the libc-commits mailing list