<div dir="ltr">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.</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jul 3, 2014 at 2:11 PM, Greenwalker <span dir="ltr"><<a href="mailto:panagos13@hotmail.com" target="_blank">panagos13@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all!<br>
<br>
Is there a way to identify if a FunctionDecl is a declaration of a function<br>
that belongs (or not) to a class ?<br>
<br>
I am trying to build a visitor which should only visit function declarations<br>
that are not members of any class.<br>
<br>
Thanks in advance!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/How-to-identify-if-a-FunctionDecl-is-member-of-a-class-tp4040346.html" target="_blank">http://clang-developers.42468.n3.nabble.com/How-to-identify-if-a-FunctionDecl-is-member-of-a-class-tp4040346.html</a><br>
Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>