<p dir="ltr">I would guess that we don't have a function for that and it just falls out of name lookup rules, so you might have to implement this yourself (by searching bases, etc). I could be wrong though.</p>
<p dir="ltr">(I'm sort of surprised that mutation testing would use the astmatchers rather than an instrumentation approach like the sanitizers)</p>
<div class="gmail_quote">On Jul 3, 2013 5:17 AM, "Daniel Quiñones Lopez" <<a href="mailto:kaos09@hotmail.com">kaos09@hotmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hi, i'm the IHD operator (Hidden Variable Delete) for mutation testing using AST matchers:<br><br><blockquote><b>using namespace std;<br><br>class A{<br> int a;<br> ... ...<br>};<br><br>class B: public A{<br>
int a;<br> ... ...<br>};<br><br><br>Mutant:<br><br>class A{<br> int a;<br> ... ...<br>};<br><br>class B: public A{<br> // int a;<br> ... ...<br>};</b><br></blockquote><br>The problem is that i cannot find a way to find when a field is hidden. I tried with "clang::NamedDecl::isHidden", but it seems that it doesn't has nothing to do with this matter. Is there a way to do this with some class method?<br>
<br>Thank you.<br> </div></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>