Lines Matching defs:Match
46 static Error printNode(StringRef Id, const MatchFinder::MatchResult &Match,
50 auto NodeOrErr = getNode(Match.Nodes, Id);
53 const PrintingPolicy PP(Match.Context->getLangOpts());
81 Error eval(const MatchFinder::MatchResult &Match,
99 Error eval(const MatchFinder::MatchResult &Match,
101 return printNode(Id, Match, Result);
149 Error eval(const MatchFinder::MatchResult &Match,
154 return printNode(Id, Match, Result);
156 const auto *E = Match.Nodes.getNodeAs<Expr>(Id);
163 Source = tooling::buildParens(*E, *Match.Context);
166 Source = tooling::buildDereference(*E, *Match.Context);
170 tooling::isKnownPointerLikeType(E->getType(), *Match.Context)) {
180 Source = tooling::buildDereference(*E, *Match.Context);
183 *Result += tooling::getText(*E, *Match.Context);
186 Source = tooling::buildAddressOf(*E, *Match.Context);
190 tooling::isKnownPointerLikeType(E->getType(), *Match.Context)) {
200 *Result += tooling::getText(*E, *Match.Context);
203 Source = tooling::buildAddressOf(*E, *Match.Context);
226 Error eval(const MatchFinder::MatchResult &Match,
228 auto RawRange = Selector(Match);
232 *RawRange, *Match.SourceManager, Match.Context->getLangOpts());
237 if (auto Err = tooling::validateRange(*RawRange, *Match.SourceManager,
254 if (auto Err = tooling::validateRange(Range, *Match.SourceManager,
260 *Result += tooling::getText(Range, *Match.Context);
280 Error eval(const MatchFinder::MatchResult &Match,
282 const auto *E = Match.Nodes.getNodeAs<Expr>(BaseId);
286 std::optional<std::string> S = tooling::buildAccess(*E, *Match.Context);
292 return Member->eval(Match, Result);
312 Error eval(const MatchFinder::MatchResult &Match,
314 auto &M = Match.Nodes.getMap();
316 ->eval(Match, Result);
402 Error eval(const MatchFinder::MatchResult &Match,
405 if (auto Err = S->eval(Match, Result))
419 Error eval(const MatchFinder::MatchResult &Match,
422 Expected<std::string> Value = Consumer(Match);