Lines Matching defs:Match

46 static Error printNode(StringRef Id, const MatchFinder::MatchResult &Match,
50 auto NodeOrErr = getNode(Match.Nodes, Id);
53 NodeOrErr->print(Os, PrintingPolicy(Match.Context->getLangOpts()));
76 Error eval(const MatchFinder::MatchResult &Match,
94 Error eval(const MatchFinder::MatchResult &Match,
96 return printNode(Id, Match, Result);
144 Error eval(const MatchFinder::MatchResult &Match,
149 return printNode(Id, Match, Result);
151 const auto *E = Match.Nodes.getNodeAs<Expr>(Id);
158 Source = tooling::buildParens(*E, *Match.Context);
161 Source = tooling::buildDereference(*E, *Match.Context);
165 tooling::isKnownPointerLikeType(E->getType(), *Match.Context)) {
175 Source = tooling::buildDereference(*E, *Match.Context);
178 *Result += tooling::getText(*E, *Match.Context);
181 Source = tooling::buildAddressOf(*E, *Match.Context);
185 tooling::isKnownPointerLikeType(E->getType(), *Match.Context)) {
195 *Result += tooling::getText(*E, *Match.Context);
198 Source = tooling::buildAddressOf(*E, *Match.Context);
221 Error eval(const MatchFinder::MatchResult &Match,
223 auto RawRange = Selector(Match);
227 *RawRange, *Match.SourceManager, Match.Context->getLangOpts());
232 if (auto Err = tooling::validateRange(*RawRange, *Match.SourceManager,
249 if (auto Err = tooling::validateRange(Range, *Match.SourceManager,
255 *Result += tooling::getText(Range, *Match.Context);
275 Error eval(const MatchFinder::MatchResult &Match,
277 const auto *E = Match.Nodes.getNodeAs<Expr>(BaseId);
281 std::optional<std::string> S = tooling::buildAccess(*E, *Match.Context);
287 return Member->eval(Match, Result);
307 Error eval(const MatchFinder::MatchResult &Match,
309 auto &M = Match.Nodes.getMap();
311 ->eval(Match, Result);
397 Error eval(const MatchFinder::MatchResult &Match,
400 if (auto Err = S->eval(Match, Result))
414 Error eval(const MatchFinder::MatchResult &Match,
417 Expected<std::string> Value = Consumer(Match);