[cfe-dev] scope of a variable

Nadeem Ahmad nahmad.unsw at gmail.com
Mon Nov 8 10:10:55 PST 2010


Dear All:


I am working on annotations for C language. Consider the following example:

void foo()* A[x][y]* { };

*A* is a two dimensional array. A[x][y] is an element which is accessed in
the foo() method. I want to know whether variables x and y have been
predefined or not? How should I proceed in this regard? Which method to call
on Declerator during parsing as I have not intention to do semantic analysis
at this stage.

Thanks for the help.

-- 
Regards,

Khan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101108/d56fa467/attachment.html>


More information about the cfe-dev mailing list