<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Thanks a lot Eli,... for your reply...</span></div><div><br><span></span></div><div>>having the AST visitor look for assignment operators rather than doing that part yourself.</div><div>I did everything myself because I wanted to start from a given function...</div><div>How do I make sure that my visitor only visits the body of a given function? Do I</div><div>have to implement two different visitors, one that only implements 'VisitFunctionDecl' to</div><div>find the function in question and then once found, call the other visitor with the function body</div><div>to only visit the 'DeclRefExpr' expressions?<br></div><div><br></div><div>>hasLinkage(), or maybe hasGlobalStorage()? </div><div>...hasLinkage is what I was looking for... ;)<br></div><div><br></div><div>>If you're just looking for simple
assignments,</div><div>I guess for the write access I do, but for the read access I need any occurrence within</div><div>the function body. Does that mean I have to implement a visitor method for any possible rvalue</div><div>expression, or is it maybe enough to only visit the 'DeclRefExpr' ?</div><div><br></div><div>Thanks a lot!!!!</div><div>Peter<br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> </div> </div></body></html>