[cfe-dev] How to check if a Decl is static

Sebastian Redl sebastian.redl at getdesigned.at
Sat Mar 12 03:12:02 PST 2011


On 12.03.2011, at 11:54, Ilya Mirsky wrote:

> Thank you, but I'm working on C files, not C++.
> Is there similar isStatic method in C context?

VarDecl has getStorageClass() and getStorageClassAsWritten(). The latter is what the user actually used on the decl, the former is computed by merging decls.

Sebastian



More information about the cfe-dev mailing list