<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 3, 2014 at 11:41 AM, Дмитрий Борисенков <span dir="ltr"><<a href="mailto:stackoverflow@xakep.ru" target="_blank">stackoverflow@xakep.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><br>I'm trying to get a source location for a type name identifier in FriendDecl, but getLocation() method returns source location of keyword 'friend'. Such behavior confused me a bit, because usually getLocation() returns an identifier location. I've released I can get location which I need through DeclSpec::getTypeSpecTypeNameLoc(). But could you explain me why getLocation() behavior differs from expected one (at least expected by me) in this case?</div>
</blockquote><div><br></div><div>From the code this shouldn't be the case. Unless you're calling getFriendLoc() instead of getLocation().</div><div><br></div><div>Cheers,</div><div>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br></div>-- <br>Kind regards, Dmitry Borisenkov</font></span></div>
<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>
<br></blockquote></div><br></div></div>