[clang] [libclang] Add API to query more information about base classes. (PR #120300)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 13:13:08 PST 2025


efriedma-quic wrote:

I think the relevant code that prevents visiting template instantiations is CursorVisitor::VisitClassTemplateSpecializationDecl.  It intentionally skips implicit template instantiations, I guess because of the origin of the API, which was focused around code written by the user.

> * methods()

It might be a little weird to see uninstantiated methods in some cases... but this probably makes sense.

> * fields()

get_fields() already exists.

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


More information about the cfe-commits mailing list