Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clang-query> match declStmt(has(varDecl(hasType(templateSpecializationType())).bind("x")))
- Match #1:
- C:\dev\src\playground\cpp\autocast.cpp(42,6): note: "x" binds here
- if(MyPtr<int> xoo = myCast(0))
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- 1 match.
- clang-query> match declStmt(has(varDecl(hasType(templateSpecializationType(hasName("MyPtr<int>")))).bind("x")))
- 1:2: Error parsing argument 1 for matcher declStmt.
- 1:11: Error parsing argument 1 for matcher has.
- 1:15: Error parsing argument 1 for matcher varDecl.
- 1:23: Error parsing argument 1 for matcher hasType.
- 1:31: Error building matcher templateSpecializationType.
- 1:58: Incorrect type for arg 1. (Expected = Matcher<TemplateSpecializationType>) != (Actual = Matcher<NamedDecl>)
- clang-query>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement