[cfe-dev] Get a VarDecl Associated with a SourceLocation

Pardis Pashakhanloo via cfe-dev cfe-dev at lists.llvm.org
Mon Jan 7 10:37:55 PST 2019


Hi,

Is it possible to get the VarDecl associated with a specific SourceLocation?
For example, VarDecl is "int a;". However, I have the SourceLocation for a.
I want to get the SourceLocation that indicates the beginning (and end) of
this VarDecl.

Best,
Pardis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190107/04fab60a/attachment.html>


More information about the cfe-dev mailing list