<div dir="ltr">I'm still wondering whether searching for hasDecl in include/clang/AST and just writing down the list that comes up would be an easier to maintain solution...</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Oct 23, 2013 at 4:28 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div class="h5">On Mon, Oct 21, 2013 at 8:29 PM, Samuel Benzaquen <span dir="ltr"><<a href="mailto:sbenza@google.com" target="_blank">sbenza@google.com</a>></span> wrote:<br></div></div><div class="gmail_extra">
<div class="gmail_quote"><div><div class="h5">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
<br>
================<br>
Comment at: include/clang/ASTMatchers/ASTMatchers.h:1690<br>
@@ -1684,1 +1689,3 @@<br>
</div><div>+                                        TemplateSpecializationType),<br>
+      false>(InnerMatcher);<br>
 }<br>
</div>----------------<br>
<div>Manuel Klimek wrote:<br>
> /*EnableCompileTimeChecks=*/false<br>
> (here and elsewhere)<br>
><br>
> On the other hand, I'm not sure I like this (and I've gone back and forth on that detail myself ;)<br>
> There's some principal beauty to being able to use all nodes that have getDecl() in hasDeclaration. On the other hand, the further down we push the error checks, the worse the error messages for our users. Due to how bad template error messages still are, this is one of the largest problems we have today. The dynamic matchers will hopefully get some of that out of the way, but I still believe that for now we just want to spell out all the types it's callable on.<br>


</div>Do you have a such a list?<br>
>From the implementation of HasDeclarationMatcher is not obvious.<br></blockquote><div><br></div></div></div><div>Ah, I didn't remember we added the templated getDecl() overload at some point...</div></div></div></div>

</blockquote></div><br></div>