Lines Matching defs:Result
72 rewriteInverseDurationCall(const MatchFinder::MatchResult &Result,
81 Node, *Result.Context))) {
82 return tooling::fixit::getText(*MaybeCallArg, *Result.Context).str();
91 rewriteInverseTimeCall(const MatchFinder::MatchResult &Result,
97 Node, *Result.Context))) {
98 return tooling::fixit::getText(*MaybeCallArg, *Result.Context).str();
161 bool isLiteralZero(const MatchFinder::MatchResult &Result, const Expr &Node) {
168 *Result.Context)) != nullptr)
180 Node, *Result.Context)) != nullptr)
187 stripFloatCast(const ast_matchers::MatchFinder::MatchResult &Result,
200 Node, *Result.Context)))
201 return tooling::fixit::getText(*MaybeCastArg, *Result.Context).str();
207 stripFloatLiteralFraction(const MatchFinder::MatchResult &Result,
217 std::string simplifyDurationFactoryArg(const MatchFinder::MatchResult &Result,
220 if (std::optional<std::string> MaybeArg = stripFloatCast(Result, Node))
225 stripFloatLiteralFraction(Result, Node))
229 return tooling::fixit::getText(Node, *Result.Context).str();
271 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
277 rewriteInverseDurationCall(Result, Scale, RootNode))
280 if (isLiteralZero(Result, RootNode))
284 simplifyDurationFactoryArg(Result, RootNode) + ")")
289 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
295 rewriteInverseTimeCall(Result, Scale, RootNode))
298 if (isLiteralZero(Result, RootNode))
302 tooling::fixit::getText(RootNode, *Result.Context) + ")")
306 bool isInMacro(const MatchFinder::MatchResult &Result, const Expr *E) {
313 while (Result.SourceManager->isMacroArgExpansion(Loc)) {
318 Loc = Result.SourceManager->getImmediateMacroCallerLoc(Loc);