[libc-commits] [libc] [libc][docgen] simplify posix links (PR #119595)
Jordan Rupprecht via libc-commits
libc-commits at lists.llvm.org
Thu Dec 12 10:05:51 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)):
----------------
rupprecht wrote:
`k in obj` already tests if a key is in a dict, is there a reason you needed to change this to `k in obj.keys()`?
https://github.com/llvm/llvm-project/pull/119595
More information about the libc-commits
mailing list