[cfe-dev] how to check if a FieldDecl is static or not?

Yafei Liu via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 20 02:55:36 PDT 2020


Hi, I checked all the API in FieldDecl and didn't find how to check if it
is a static member, and I tried this also:

auto FieldType = TheField->getType();

and I cannot find any static checking in QualType either.

So how can I check if the field is static or not?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20201020/80c6fbba/attachment.html>


More information about the cfe-dev mailing list