Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. clang-query> match declStmt(has(varDecl(hasType(templateSpecializationType())).bind("x")))
  2.  
  3. Match #1:
  4.  
  5. C:\dev\src\playground\cpp\autocast.cpp(42,6): note: "x" binds here
  6. if(MyPtr<int> xoo = myCast(0))
  7. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8. 1 match.
  9. clang-query> match declStmt(has(varDecl(hasType(templateSpecializationType(hasName("MyPtr<int>")))).bind("x")))
  10. 1:2: Error parsing argument 1 for matcher declStmt.
  11. 1:11: Error parsing argument 1 for matcher has.
  12. 1:15: Error parsing argument 1 for matcher varDecl.
  13. 1:23: Error parsing argument 1 for matcher hasType.
  14. 1:31: Error building matcher templateSpecializationType.
  15. 1:58: Incorrect type for arg 1. (Expected = Matcher<TemplateSpecializationType>) != (Actual = Matcher<NamedDecl>)
  16. clang-query>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement