[clang] Added TypeKind.FLOAT16 for 32 in cindex.py (PR #142634)
Zokre Zyl via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 6 13:40:06 PDT 2025
zokrezyl wrote:
> Great, thank you!
>
> > IMHO: I guess a relevant test case is to take some huge relevant project, maybe LLVM itself and parse all their files and walk through all the nodes of the ast through all the members/methods recursively
>
> The problem is that this depends on the functionality you're testing, e.g. in this case, just walking the entire Clang AST would not have been enough to detect the issue, you would have had to call `cursor.type.kind` for every node. And at that point, you might as well compare the possible to the mapped kinds directly.
Well, that is what I mean walking recursively and calling all possible methods, attributes, at least those that do not need arguments. Obviously avoiding cycles, as such a walking would cause cycles.
https://github.com/llvm/llvm-project/pull/142634
More information about the cfe-commits
mailing list