]> granicus.if.org Git - clang/commit
Fix bug in DynTypedMatcher::constructVariadic() that would cause false negatives.
authorSamuel Benzaquen <sbenza@google.com>
Mon, 13 Oct 2014 17:38:12 +0000 (17:38 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Mon, 13 Oct 2014 17:38:12 +0000 (17:38 +0000)
commite0265decdac966c98cede46cf612cc2cd8eb6c6c
tree71d3da67cf5642dc7eab6204c1d283b4a063e50f
parentbd01824a0f5da08387a20165216383b20fe5164f
Fix bug in DynTypedMatcher::constructVariadic() that would cause false negatives.

Summary:
Change r219118 fixed the bug for anyOf and eachOf, but it is still
present for unless.
The variadic wrapper doesn't have enough information to know how to
restrict the type. Different operators handle restrict failures in
different ways.

Reviewers: klimek

Subscribers: klimek, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219622 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ASTMatchers/ASTMatchersInternal.cpp
unittests/ASTMatchers/ASTMatchersTest.cpp
unittests/ASTMatchers/Dynamic/RegistryTest.cpp