<div>Not being familiar with libclang but I'll take a stab in the dark - does 'this' appear in the parameter list through libclang? Can you detect whether the 'this' parameter is const?<br><br></div><div class="gmail_quote">
On Fri, Jan 20, 2012 at 12:26 PM, Robert Anderson <span dir="ltr"><<a href="mailto:rwa@alumni.princeton.edu">rwa@alumni.princeton.edu</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<br>I have a class with two implementations of operator(), one is const and one is not.<br><br>What call in the libclang API allows me to determine which one I am looking at if I am traversing the AST?<br><br>I found the two calls:<br>
<br>clang_CXXMethod_isStatic( CXCursor C )<br>clang_CXXMethod_isVirtual( CXCursor C )<br><br>but there is no corresponding call to _isConst(). Is there some other way to accomplish this?<br><br>Thanks,<br>Bob Anderson<br>
<br><table><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table>
<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>