#include "UpgradeGoogletestCaseCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include <optional>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::google {
static const llvm::StringRef RenameCaseToSuiteMessage = …;
static std::optional<llvm::StringRef>
getNewMacroName(llvm::StringRef MacroName) { … }
namespace {
class UpgradeGoogletestCasePPCallback : public PPCallbacks { … };
}
void UpgradeGoogletestCaseCheck::registerPPCallbacks(const SourceManager &,
Preprocessor *PP,
Preprocessor *) { … }
void UpgradeGoogletestCaseCheck::registerMatchers(MatchFinder *Finder) { … }
static llvm::StringRef getNewMethodName(llvm::StringRef CurrentName) { … }
template <typename NodeType>
static bool isInInstantiation(const NodeType &Node,
const MatchFinder::MatchResult &Result) { … }
template <typename NodeType>
static bool isInTemplate(const NodeType &Node,
const MatchFinder::MatchResult &Result) { … }
static bool
derivedTypeHasReplacementMethod(const MatchFinder::MatchResult &Result,
llvm::StringRef ReplacementMethod) { … }
static CharSourceRange
getAliasNameRange(const MatchFinder::MatchResult &Result) { … }
void UpgradeGoogletestCaseCheck::check(const MatchFinder::MatchResult &Result) { … }
}