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

Method run

lib/tcanalysis/NamedDeclCallback.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace ast_matchers;
6
7void NamedDeclCallback::run(const MatchFinder::MatchResult &Result) {
8 for (auto MatcherTag : MatcherTags) {
9 const NamedDecl *FoundNamedDecl =
10 Result.Nodes.getNodeAs<NamedDecl>(MatcherTag);
11
12 if (FoundNamedDecl) {
13 FoundNamedDecls[MatcherTag].emplace_back(
14 llvm::cast<NamedDecl>(FoundNamedDecl));
15 }
16 }
17}
18
19const std::map<std::string, std::vector<const NamedDecl *>>
20NamedDeclCallback::getFoundNamedDecls() const {

Callers 1

prepareLLVMAnalysisMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected