<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>On Apr 23, 2008, at 9:42 AM, Chris Lattner wrote:</div><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; "><br><div><div>On Apr 23, 2008, at 9:22 AM, Emerson Murphy-Hill 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; ">Suppose I have an objective-c interface:<div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(63, 110, 116); "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><span style="color: #aa0d91">@interface</span> C {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">  <span style="color: #aa0d91">int</span> x,y;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">};</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><font class="Apple-style-span" color="#000000" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">I parse it, and have an ObjCIvarDecl for x.  How can I determine that x is in a multi-declaration?  I could check which ObjCIvarDecls' locations overlap, but is there an easier way?</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><br></div></div></div></div></blockquote><br></div><div>What else do you need to know?  What action would you take based on whether it was a multi declaration or not?</div><div><br class="webkit-block-placeholder"></div><div>Capturing this information is quite straight-forward, but it is good to have the whole picture in mind before doing something like this.</div><div><br class="webkit-block-placeholder"></div><div>-Chris</div></div></blockquote></div><br><div>I'm removing an instance variable.  In the current code, if it's a multi-decl, I just give up, which is what spawned this question.  Ideally, I'd like to be able to remove an inst var from a multi-decl as easily as from a single decl.</div><div><br></div><div>Thanks,</div><div><br></div><div>e</div></body></html>