[cfe-dev] checking for virtual members
Douglas Gregor
dgregor at apple.com
Tue Nov 2 11:54:17 PDT 2010
On Nov 1, 2010, at 5:05 PM, John Thompson wrote:
> 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?
>
> Checking the CXXRecordDecl::PlainOldData flag with isPOD doesn't work, because the the strict definition of POD goes too far for this case.
Why? Is this what GCC does?
- Doug
More information about the cfe-dev
mailing list