<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Dec 8, 2011, at 12:27 PM, jahanian wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div>On Dec 8, 2011, at 11:14 AM, Jason Haslam wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hmm… okay. I guess that the only justification that I have is that we use it in our IDE to point to the location of the category implementation (e.g. when the user right clicks on the category name in the interface declaration and selects 'Edit Implementation'). There's no other use in clang itself.<br></div></blockquote>We have couple of locations you may use:<div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">ObjCCategoryImplDecl(<span style="color: rgb(86, 129, 134); ">DeclContext</span> *DC, <span style="color: rgb(86, 129, 134); ">IdentifierInfo</span> *Id,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">                       <span style="color: rgb(86, 129, 134); ">ObjCInterfaceDecl</span> *classInterface,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">                       <span style="color: rgb(86, 129, 134); ">SourceLocation</span> nameLoc, <span style="color: rgb(86, 129, 134); ">SourceLocation</span> atStartLoc)</div><div><br></div></div></div></div></div></div></blockquote><div><br></div><div>Yes, I noticed those. We like to select the name of the referenced entity when we jump to its location. And deriving the location of the category name from the location of the class name seemed too error prone and complicated, especially given that it's already known at the point where the node is constructed. However, this is really too minor a point to argue about. If you don't feel that it adds any value that's good enough for me. Thanks for the review.</div><div><br></div><div>Jason</div><div><br></div></div></body></html>