[cfe-dev] How to determine if Decl is a RecordDecl?

Marcel Schaible via cfe-dev cfe-dev at lists.llvm.org
Wed Nov 11 07:21:10 PST 2020


Hi,

I am currently devoloping a tool, which collects Decl with a 
user-defined attribute.

At the moement I am storing these Decls in a vector.

Afterwards I want to iterate over the vector of Decls and want to 
determine if a element is e.g. of type RecordDecl or CxxRecordDecl

What is the preferred way for achieving this?

Thanks

Marcel


More information about the cfe-dev mailing list