| 20 | } |
| 21 | |
| 22 | bool exist(const std::vector<const clang::CXXMethodDecl *> &Decls, |
| 23 | std::string Name) { |
| 24 | |
| 25 | return std::find_if(Decls.begin(), Decls.end(), [Name](const auto *D) { |
| 26 | if (!D) |
| 27 | return false; |
| 28 | return D->getName() == Name; |
| 29 | }) != Decls.end(); |
| 30 | } |
| 31 | }; |
| 32 | |
| 33 | TEST_F(TestNonStaticClassMethodMatcher, NonStaticClassMethodsP) { |