[cfe-dev] Variable scope
cleanconcept83 at gmail.com
Sat Sep 1 08:20:45 PDT 2012
I'm writting some code for visiting variable, struct, ... declarations (I'm
using C Language). For that, my class derives from DeclVisitor. My goal is
to determine the scope of each variable at its declaration (ie inside the
VisitVarDecl method). The method getSourceRangeonly of VarDecl only returns
the range of the declaration in terms of caracters, not the real scope. Is
there method for getting the VarDecl scope ?
Thanks by advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev