<div dir="ltr">On Wed, Aug 28, 2013 at 11:43 PM, Aaron Ballman <span dir="ltr"><<a href="mailto:aaron.ballman@gmail.com" target="_blank">aaron.ballman@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't know enough about the matchers to really provide a review that<br>
means much.  But I'm a bit scared by the idea that MSVC injects some<br>
code into the AST that we don't fully understand.  Can we do a bit<br>
more research before disabling the test, and perhaps add a comment as<br>
to *why* that test is disabled for MSVC if it really should be<br>
disabled?<br></blockquote><div><br></div><div>That is actually a well-known problem - we've dealt with that mostly by making the matchers more specific in the past.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Thanks!<br>
<span class="HOEnZb"><font color="#888888"><br>
~Aaron<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Aug 28, 2013 at 5:30 PM, Samuel Benzaquen <<a href="mailto:sbenza@google.com">sbenza@google.com</a>> wrote:<br>
> Hi aaron.ballman,<br>
><br>
> Remove one test in MSVC. I believe MSVC injects some code into the AST and is causing these tests to fail by finding nodes I am not expecting.<br>
><br>
> <a href="http://llvm-reviews.chandlerc.com/D1541" target="_blank">http://llvm-reviews.chandlerc.com/D1541</a><br>
><br>
> Files:<br>
>   unittests/ASTMatchers/Dynamic/RegistryTest.cpp<br>
><br>
> Index: unittests/ASTMatchers/Dynamic/RegistryTest.cpp<br>
> ===================================================================<br>
> --- unittests/ASTMatchers/Dynamic/RegistryTest.cpp<br>
> +++ unittests/ASTMatchers/Dynamic/RegistryTest.cpp<br>
> @@ -270,7 +270,9 @@<br>
><br>
>    EXPECT_TRUE(matches("void foo(){}", D));<br>
>    EXPECT_TRUE(matches("struct Foo{};", D));<br>
> +#if !defined(_MSC_VER)<br>
>    EXPECT_FALSE(matches("int i = 0;", D));<br>
> +#endif<br>
><br>
>    D = constructMatcher(<br>
>        "allOf", constructMatcher("recordDecl"),<br>
</div></div></blockquote></div><br></div></div>