#include "TimeSubtractionCheck.h"
#include "DurationRewriter.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/FixIt.h"
#include <optional>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::abseil {
static bool insideMacroDefinition(const MatchFinder::MatchResult &Result,
SourceRange Range) { … }
static bool isConstructorAssignment(const MatchFinder::MatchResult &Result,
const Expr *Node) { … }
static bool isArgument(const MatchFinder::MatchResult &Result,
const Expr *Node) { … }
static bool isReturn(const MatchFinder::MatchResult &Result, const Expr *Node) { … }
static bool parensRequired(const MatchFinder::MatchResult &Result,
const Expr *Node) { … }
void TimeSubtractionCheck::emitDiagnostic(const Expr *Node,
llvm::StringRef Replacement) { … }
void TimeSubtractionCheck::registerMatchers(MatchFinder *Finder) { … }
void TimeSubtractionCheck::check(const MatchFinder::MatchResult &Result) { … }
}