<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif;font-size:small">I didn't realize the inheritance, thanks a lot</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 25, 2018 at 4:13 PM James Dennett <<a href="mailto:james.dennett@gmail.com">james.dennett@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 25, 2018 at 12:27 AM, Ridwan Shariffdeen via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:garamond,serif;font-size:small">Hi,</div><div style="font-family:garamond,serif;font-size:small"><br></div><div style="font-family:garamond,serif;font-size:small">I am trying to get the location of the variable declaration from a DeclRefExpr. <br>Is there a way I can achieve this? There doesn't seem to be any relationship with DeclRefExpr and the actual VarDecl. </div></div></blockquote><div><br></div><div>DeclRefExpr::getDecl returns a ValueDecl*. For a variable, that's a VarDecl.</div><div><br></div><div>-- James</div></div></div></div>
</blockquote></div>