[cfe-dev] checking for virtual members

Anders Carlsson andersca at mac.com
Mon Nov 1 17:10:28 PDT 2010


Nov 1, 2010 kl. 5:05 PM skrev John Thompson:

> I need a way easily check to make sure a function has no virtual functions, or other stuff that would inject extra stuff into an object or structure, as part of the validation for the vecreturn attribute.  How do I do it?

Hi John,

CXXRecordDecl::isDynamicClass() checks if the class has a vtable (either virtual functions or virtual bases).

- Anders




More information about the cfe-dev mailing list