• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/

Lines Matching defs:Match

178                const MatchFinder::MatchResult &Match, std::string *Result) {
181 auto NodeOrErr = getNode(Match.Nodes, Data.Id);
184 NodeOrErr->print(Os, PrintingPolicy(Match.Context->getLangOpts()));
190 const MatchFinder::MatchResult &Match, std::string *Result) {
191 const auto *E = Match.Nodes.getNodeAs<Expr>(Data.Id);
198 Source = tooling::buildParens(*E, *Match.Context);
201 Source = tooling::buildDereference(*E, *Match.Context);
205 *Result += tooling::getText(*E, *Match.Context);
208 Source = tooling::buildDereference(*E, *Match.Context);
211 Source = tooling::buildAddressOf(*E, *Match.Context);
215 *Result += tooling::getText(*E, *Match.Context);
218 Source = tooling::buildAddressOf(*E, *Match.Context);
229 Error evalData(const SelectorData &Data, const MatchFinder::MatchResult &Match,
231 auto RawRange = Data.Selector(Match);
235 *RawRange, *Match.SourceManager, Match.Context->getLangOpts());
240 if (auto Err = tooling::validateEditRange(*RawRange, *Match.SourceManager))
256 if (auto Err = tooling::validateEditRange(Range, *Match.SourceManager))
261 *Result += tooling::getText(Range, *Match.Context);
265 Error evalData(const AccessData &Data, const MatchFinder::MatchResult &Match,
267 const auto *E = Match.Nodes.getNodeAs<Expr>(Data.BaseId);
274 ? tooling::buildArrow(*E, *Match.Context)
275 : tooling::buildDot(*E, *Match.Context))
282 return Data.Member->eval(Match, Result);
285 Error evalData(const IfBoundData &Data, const MatchFinder::MatchResult &Match,
287 auto &M = Match.Nodes.getMap();
289 ->eval(Match, Result);
293 const MatchFinder::MatchResult &Match, std::string *Result) {
294 Expected<std::string> Value = Fn(Match);
301 Error evalData(const SequenceData &Data, const MatchFinder::MatchResult &Match,
304 if (auto Err = S->eval(Match, Result))
316 Error eval(const MatchFinder::MatchResult &Match,
318 return evalData(Data, Match, Result);