hanchenye-llvm-project/clang/unittests/AST
Samuel Benzaquen a117002d93 Fix bug in DynTypedMatcher::constructVariadic() that would cause false negatives.
Summary:
DynTypedMatcher::constructVariadic() where the restrict kind of the
different matchers are not related causes the matcher to have a "None"
restrict kind. This causes false negatives for anyOf and eachOf.
Change the logic to get a common ancestor if there is one.
Also added regression tests that fail without the fix.

Reviewers: klimek

Subscribers: klimek, cfe-commits

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

llvm-svn: 219118
2014-10-06 13:14:30 +00:00
..
ASTContextParentMapTest.cpp
ASTTypeTraitsTest.cpp Fix bug in DynTypedMatcher::constructVariadic() that would cause false negatives. 2014-10-06 13:14:30 +00:00
ASTVectorTest.cpp Switching from std::vector to llvm::ArrayRef per post-commit review suggestion. 2014-08-26 17:05:57 +00:00
CMakeLists.txt
CommentLexer.cpp unique_ptrify SourceManager::createFileID 2014-08-29 07:59:55 +00:00
CommentParser.cpp unique_ptrify SourceManager::createFileID 2014-08-29 07:59:55 +00:00
DeclPrinterTest.cpp
DeclTest.cpp
EvaluateAsRValueTest.cpp Recommit 213307: unique_ptr-ify ownership of ASTConsumers (reverted in r213325) 2014-08-10 19:56:51 +00:00
ExternalASTSourceTest.cpp Update for LLVM api change. 2014-08-27 20:03:29 +00:00
Makefile
MatchVerifier.h Add missing header guards. 2014-08-08 13:24:19 +00:00
NamedDeclPrinterTest.cpp Recommit 213307: unique_ptr-ify ownership of ASTConsumers (reverted in r213325) 2014-08-10 19:56:51 +00:00
SourceLocationTest.cpp Obective-C. Patch to fix the incorrect ObjcMessageExpr argument source ranges, 2014-07-31 17:39:50 +00:00
StmtPrinterTest.cpp