<div dir="ltr">Comment for getFriendType says: "If this friend declaration names an (untemplated but possibly dependent) type, return the type; otherwise return null.  This is used for elaborated-type-specifiers and, in C++0x, for arbitrary friend type declarations."<div>

<br></div><div>Elaborated type would be 'friend struct A', C++0x case is the one I gave in previous email. So yes that's the correct way to differentiate them.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Mon, Jul 14, 2014 at 1:33 AM, 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">

Thank you Nikola,<br>
<br>
I have noticed that FriendDecl::getFriendDecl returns NULL when friend is a<br>
struct / class while FriendDecl::getFriendType returns NULL when friend is a<br>
function. Is this a correct way to identify the kind of the friend<br>
(struct/class or function) ?<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/Access-the-definition-of-a-class-friend-tp4040510p4040519.html" target="_blank">http://clang-developers.42468.n3.nabble.com/Access-the-definition-of-a-class-friend-tp4040510p4040519.html</a><br>


<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>