[cfe-users] DeclRefExpr question

Robert Ankeney via cfe-users cfe-users at lists.llvm.org
Tue Dec 3 10:32:55 PST 2019


Let's assume I have a DeclRefExpr that is referenceing some variable that
is declared as "static const int var;". How can I determine the variable is
static? There is no isStaticLocal() or getStorageClass() call as there
would be for the VarDecl. Is there something within the QualType that gets
me that info?

Many thanks,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20191203/b68ab167/attachment.html>


More information about the cfe-users mailing list