[PATCH] Fix equalsNode() to accept pointers to derived types.
Samuel Benzaquen
sbenza at google.com
Mon Jun 2 14:06:51 PDT 2014
Hi klimek,
Move the 'const' in the AST_*MATCHER_P* macros to the right of ParamType to
avoiad applying the constness on the wrong level when ParamType is a pointer.
Change equalsNode() to explicitly accept 'const Decl*' or 'const Stmt*'.
http://reviews.llvm.org/D3994
Files:
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersMacros.h
unittests/ASTMatchers/ASTMatchersTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3994.10026.patch
Type: text/x-patch
Size: 13792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140602/3349079e/attachment.bin>
More information about the cfe-commits
mailing list