Fix handling of anonymous names in Clang 16. by pcwalton · Pull Request #2316 · rust-lang/rust-bindgen (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! While this does fix the issue, I'd much rather check clang_Cursor_isAnonymous than relying on the spelling.

I had a WIP in the issue, and you found the place that I had missed, so #2319 contains that and I confirmed I get the same results as with this fix.

If you're ok with that (and assuming that's green on CI), I'd rather use that approach, which seems slightly more robust.

Thanks!