llvm/clang-tools-extra/clang-tidy/abseil/TimeSubtractionCheck.cpp

//===--- TimeSubtractionCheck.cpp - clang-tidy ----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#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 {

// Returns `true` if `Range` is inside a macro definition.
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) {}

} // namespace clang::tidy::abseil