[PATCH] D48242: [ASTMatchers] Add support for matching the type of a friend decl.
David L. Jones via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 15 15:14:41 PDT 2018
dlj created this revision.
dlj added a reviewer: klimek.
dlj added a project: clang.
This allows matchers like:
friendDecl(hasType(cxxRecordDecl(...)))
friendDecl(hasType(asString(...)))
It seems that hasType is probably the most reasonable narrowing matcher to
overload, since it is already used to narrow to other declaration kinds.
Repository:
rC Clang
https://reviews.llvm.org/D48242
Files:
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
unittests/ASTMatchers/ASTMatchersNodeTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48242.151570.patch
Type: text/x-patch
Size: 4076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180615/fdbe14f7/attachment.bin>
More information about the cfe-commits
mailing list