MCPcopy Create free account
hub / github.com/Samsung/UTopia / exist

Method exist

tests/astirmap/TestMatchers.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
33TEST_F(TestNonStaticClassMethodMatcher, NonStaticClassMethodsP) {

Callers

nothing calls this directly

Calls 4

find_ifFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected