<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 18, 2011, at 2:57 AM, Talespin Kit wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;">How to get the source location of the AccessSpecifer using a CXXMethodDecl, <br><br>or<br><br>using a AccessSpecDecl object how to traverse the members under it.<br></td></tr></tbody></table></blockquote></div><div><br></div><div>Just walk through the members of the class declaration (i.e., a CXXRecordDecl) with decls_begin()/decls_end(), which come in source order. When you see an AccessSpecDecl, make that the "current" access specification decl, which specifies the access of all of the declarations that follow (until the next AccessSpecDecl, of course).</div><br><div><span class="Apple-tab-span" style="white-space:pre">      </span>- Doug</div></body></html>