[cfe-dev] Comparing SourceRanges

Pardis Pashakhanloo via cfe-dev cfe-dev at lists.llvm.org
Tue Nov 27 09:52:26 PST 2018


Hi all,

How can I check if a SourceRange is inside another SourceRange?
For example, if I have a FunctionDecl *FD and a Stmt *S, how to check if
S->getSourceRange() is located inside FD->getSourceRange()?

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


More information about the cfe-dev mailing list