]> granicus.if.org Git - clang/commit
Fix equalsNode() to accept pointers to derived types.
authorSamuel Benzaquen <sbenza@google.com>
Thu, 5 Jun 2014 14:47:08 +0000 (14:47 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Thu, 5 Jun 2014 14:47:08 +0000 (14:47 +0000)
commit6c521451b8c46cc73c76fb27582461cf1fab2fb9
tree4dd12e4ad3c18e7899b15c89fa585f5aa9f2298c
parentc84a5329f6ca3137a3e4e1259f4d9cf1e985d191
Fix equalsNode() to accept pointers to derived types.

Summary:
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*'.

Reviewers: klimek

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D3994

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210269 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
include/clang/ASTMatchers/ASTMatchersMacros.h