[cfe-dev] declRefExpr clang

madil90 madil90 at gmail.com
Thu Nov 15 12:00:58 PST 2012


Hi,
  I have a DeclRefExpr which tells me wherever a variable is used. I want to
find out the previous or the next ";" so that I can go to the start of the
command in which this variable was used e.g.

int a,b;

a = b + 3;
     | |

   In this case the DeclRefExpr for b will start and end at the locations
shown. How can I find the previous ";" (in this case at the end of the line
int a,b;))

Regards,
Adil



--
View this message in context: http://clang-developers.42468.n3.nabble.com/declRefExpr-clang-tp4028278.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list