llvm-project/clang/unittests/ASTMatchers
Felix Berger a1b1c23a3b [clang] ASTMatchers: Fix out-of-bounds access in foreachArgumentWithParamType.
The matcher crashes when a variadic function pointer is invoked because the
FunctionProtoType has fewer parameters than arguments.

Matching of non-variadic arguments now works.

Differential Revision: https://reviews.llvm.org/D114559

Reviewed-by: sammccall
2021-12-15 12:35:07 -05:00
..
Dynamic [ASTMatchers] Add `cxxBaseSpecifier` matcher (non-top-level) 2021-04-09 00:05:36 +01:00
ASTMatchersInternalTest.cpp Remove automatic traversal from forEach matcher 2020-11-23 14:27:47 +00:00
ASTMatchersNarrowingTest.cpp Add `isInitCapture` and `forEachLambdaCapture` matchers. 2021-11-15 22:55:28 +00:00
ASTMatchersNodeTest.cpp Add `LambdaCapture`-related matchers. 2021-11-08 18:50:54 +00:00
ASTMatchersTest.h Reapply "Support Attr in DynTypedNode and ASTMatchers." 2021-08-06 22:30:32 +02:00
ASTMatchersTraversalTest.cpp [clang] ASTMatchers: Fix out-of-bounds access in foreachArgumentWithParamType. 2021-12-15 12:35:07 -05:00
CMakeLists.txt On Windows build, making the /bigobj flag global , instead of passing it per file. 2020-07-28 18:04:36 -05:00
GtestMatchersTest.cpp Add matchers for gtest's ASSERT_THAT, EXPECT_THAT, ON_CALL and EXPECT_CALL 2021-06-02 17:28:14 +00:00