Lines Matching refs:Result
69 void run(const MatchFinder::MatchResult &Result) override;
70 virtual void verify(const MatchFinder::MatchResult &Result,
73 void setFailure(const Twine &Result) {
75 VerifyResult = Result.str();
87 /// \brief Runs a matcher over some code, and returns the result of the
133 /// \brief Runs a matcher over some AST, and returns the result of the
150 void MatchVerifier<NodeType>::run(const MatchFinder::MatchResult &Result) {
151 const NodeType *Node = Result.Nodes.getNodeAs<NodeType>("");
157 verify(Result, *Node);
163 const MatchFinder::MatchResult &Result) {
164 BoundNodes::IDToNodeMap M = Result.Nodes.getMap();
171 verify(Result, I->second);
188 void verify(const MatchFinder::MatchResult &Result,
191 unsigned Line = Result.SourceManager->getSpellingLineNumber(Loc);
192 unsigned Column = Result.SourceManager->getSpellingColumnNumber(Loc);
198 Loc.print(Msg, *Result.SourceManager);
228 void verify(const MatchFinder::MatchResult &Result,
233 unsigned BeginLine = Result.SourceManager->getSpellingLineNumber(Begin);
234 unsigned BeginColumn = Result.SourceManager->getSpellingColumnNumber(Begin);
235 unsigned EndLine = Result.SourceManager->getSpellingLineNumber(End);
236 unsigned EndColumn = Result.SourceManager->getSpellingColumnNumber(End);
243 Begin.print(Msg, *Result.SourceManager);
245 End.print(Msg, *Result.SourceManager);
267 void verify(const MatchFinder::MatchResult &Result,
271 Node.dump(Dump, *Result.SourceManager);
294 void verify(const MatchFinder::MatchResult &Result,
298 Node.print(Print, Result.Context->getPrintingPolicy());