[cfe-dev] Variable declaration location
James Dennett via cfe-dev
cfe-dev at lists.llvm.org
Wed Jul 25 01:13:33 PDT 2018
On Wed, Jul 25, 2018 at 12:27 AM, Ridwan Shariffdeen via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> I am trying to get the location of the variable declaration from
> a DeclRefExpr.
> Is there a way I can achieve this? There doesn't seem to be any
> relationship with DeclRefExpr and the actual VarDecl.
DeclRefExpr::getDecl returns a ValueDecl*. For a variable, that's a
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev