[cfe-dev] How to identify if a FunctionDecl is member of a class.
Daniel Dilts
diltsman at gmail.com
Thu Jul 3 15:13:17 PDT 2014
If the FunctionDecl is a CXXMethodDecl, then it is a class member. So,
either search for CXXMethodDecl directly, or see if the FunctionDecl is a
CXXMethodDecl.
On Thu, Jul 3, 2014 at 2:11 PM, Greenwalker <panagos13 at hotmail.com> wrote:
> Hi all!
>
> Is there a way to identify if a FunctionDecl is a declaration of a function
> that belongs (or not) to a class ?
>
> I am trying to build a visitor which should only visit function
> declarations
> that are not members of any class.
>
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/How-to-identify-if-a-FunctionDecl-is-member-of-a-class-tp4040346.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140703/d2ee9508/attachment.html>
More information about the cfe-dev
mailing list