Error with hasTemplateArgument in clang-querry for FunctionDecl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error with hasTemplateArgument in clang-querry for FunctionDecl

David Chisnall via cfe-dev
Hello,


The example shown on the official page for hasTemplateArgument with
FunctionDecldoes not work with clang-query-3.9

functionDecl(hasTemplateArgument(0, refersToType(asString("int"))))


I get the following error

clang-query > m
functionDecl(hasTemplateArgument(1,refersToType(asString("int"))))
1:2: Error building matcher functionDecl.
1:15: Incorrect type for arg 1. (Expected = Matcher<FunctionDecl>) !=
(Actual =
Matcher<ClassTemplateSpecializationDecl|TemplateSpecializationType>)

Regards,

David Côme
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev