[cfe-dev] Error with hasTemplateArgument in clang-querry for FunctionDecl
David Come via cfe-dev
cfe-dev at lists.llvm.org
Fri Mar 3 04:33:03 PST 2017
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
More information about the cfe-dev
mailing list