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

Function collectNonStaticClassMethods

lib/utils/ASTUtil.cpp:37–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37std::vector<const clang::CXXMethodDecl *>
38collectNonStaticClassMethods(const std::vector<clang::ASTUnit *> Srcs) {
39 const std::string Tag = "Tag";
40 std::vector<const clang::CXXMethodDecl *> Result;
41 for (auto *Src : Srcs) {
42 if (!Src)
43 continue;
44
45 auto &Ctx = Src->getASTContext();
46 auto Matcher = cxxMethodDecl(unless(isStaticStorageClass())).bind(Tag);
47 for (const auto &Node : match(Matcher, Ctx)) {
48 const auto *Record = Node.getNodeAs<CXXMethodDecl>(Tag);
49 if (!Record)
50 continue;
51 Result.emplace_back(Record);
52 }
53 }
54 return Result;
55}
56
57std::vector<Expr *> getArgExprs(Expr &E) {
58 std::vector<Expr *> Args;

Callers 5

initializeRDAnalyzerMethod · 0.85
TEST_FFunction · 0.85
analyzeMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.68
analyzeMethod · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68