[PATCH] D54407: Record the matcher type when storing a binding

Stephen Kelly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 11 14:38:18 PST 2018


steveire created this revision.
steveire added a reviewer: aaron.ballman.
Herald added a subscriber: cfe-commits.

This is necessary so that when we wish to print the matchers for a
binding of type `CXXMeethodDecl`, but which was matched with a base
matcher such as `functionDecl()` we can inform the user that they can
write `functionDecl(cxxMethodDecl(isOverride()))` etc.


Repository:
  rC Clang

https://reviews.llvm.org/D54407

Files:
  include/clang/ASTMatchers/ASTMatchersInternal.h
  lib/ASTMatchers/ASTMatchersInternal.cpp
  lib/Tooling/RefactoringCallbacks.cpp
  unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  unittests/ASTMatchers/ASTMatchersTest.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54407.173591.patch
Type: text/x-patch
Size: 13325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181111/41ade7ef/attachment-0001.bin>


More information about the cfe-commits mailing list