clang-tools 22.0.0git
clang::tidy::google Namespace Reference

Namespaces

namespace  build
namespace  objc
namespace  readability
namespace  runtime

Classes

class  DefaultArgumentsCheck
 Checks that default parameters are not given for virtual methods. More...
class  ExplicitConstructorCheck
 Checks that all single-argument constructors are explicit. More...
class  GoogleModule
class  UpgradeGoogletestCaseCheck
 Finds uses of deprecated Googletest APIs with names containing "case" and replaces them with equivalent names containing "suite". More...

Functions

static SourceRange findToken (const SourceManager &Sources, const LangOptions &LangOpts, SourceLocation StartLoc, SourceLocation EndLoc, bool(*Pred)(const Token &))
static bool declIsStdInitializerList (const NamedDecl *D)
static bool isStdInitializerList (QualType Type)
static ClangTidyModuleRegistry::Add< GoogleModuleX ("google-module", "Adds Google lint checks.")
static std::optional< llvm::StringRef > getNewMacroName (llvm::StringRef MacroName)
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)

Variables

static const llvm::StringRef RenameCaseToSuiteMessage

Function Documentation

◆ declIsStdInitializerList()

bool clang::tidy::google::declIsStdInitializerList ( const NamedDecl * D)
static

Definition at line 60 of file ExplicitConstructorCheck.cpp.

Referenced by isStdInitializerList().

◆ derivedTypeHasReplacementMethod()

bool clang::tidy::google::derivedTypeHasReplacementMethod ( const MatchFinder::MatchResult & Result,
llvm::StringRef ReplacementMethod )
static

◆ findToken()

SourceRange clang::tidy::google::findToken ( const SourceManager & Sources,
const LangOptions & LangOpts,
SourceLocation StartLoc,
SourceLocation EndLoc,
bool(* Pred )(const Token &) )
static

◆ getAliasNameRange()

CharSourceRange clang::tidy::google::getAliasNameRange ( const MatchFinder::MatchResult & Result)
static

◆ getNewMacroName()

std::optional< llvm::StringRef > clang::tidy::google::getNewMacroName ( llvm::StringRef MacroName)
static

Definition at line 25 of file UpgradeGoogletestCaseCheck.cpp.

◆ getNewMethodName()

llvm::StringRef clang::tidy::google::getNewMethodName ( llvm::StringRef CurrentName)
static

◆ isInInstantiation()

template<typename NodeType>
bool clang::tidy::google::isInInstantiation ( const NodeType & Node,
const MatchFinder::MatchResult & Result )
static

◆ isInTemplate()

template<typename NodeType>
bool clang::tidy::google::isInTemplate ( const NodeType & Node,
const MatchFinder::MatchResult & Result )
static

◆ isStdInitializerList()

bool clang::tidy::google::isStdInitializerList ( QualType Type)
static

◆ X()

ClangTidyModuleRegistry::Add< GoogleModule > clang::tidy::google::X ( "google-module" ,
"Adds Google lint checks."  )
static

Variable Documentation

◆ RenameCaseToSuiteMessage

const llvm::StringRef clang::tidy::google::RenameCaseToSuiteMessage
static
Initial value:
=
"Google Test APIs named with 'case' are deprecated; use equivalent APIs "
"named with 'suite'"

Definition at line 20 of file UpgradeGoogletestCaseCheck.cpp.

Referenced by clang::tidy::google::UpgradeGoogletestCaseCheck::check().