[cfe-dev] Variable scope

Balou cleanconcept83 at gmail.com
Sat Sep 1 08:20:45 PDT 2012


Hello everyone,

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,

Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120901/9871d6e5/attachment.html>


More information about the cfe-dev mailing list