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

Classes

class  AvoidCStyleCastsCheck
 Finds usages of C-style casts. More...
class  AvoidUnderscoreInGoogletestNameCheck
 For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/google/readability-avoid-underscore-in-googletest-name.html. More...
class  GlobalNamesInHeadersCheck
 Flag global namespace pollution in header files. More...
class  TodoCommentCheck
 Finds TODO comments without a username or bug number. More...

Functions

static bool needsConstCast (QualType SourceType, QualType DestType)
static bool pointedUnqualifiedTypesAreEqual (QualType T1, QualType T2)
static clang::CharSourceRange getReplaceRange (const ExplicitCastExpr *Expr)
static StringRef getDestTypeString (const SourceManager &SM, const LangOptions &LangOpts, const ExplicitCastExpr *Expr)
static bool sameTypeAsWritten (QualType X, QualType Y)
static bool isGoogletestTestMacro (StringRef MacroName)

Variables

constexpr llvm::StringLiteral KDisabledTestPrefix = "DISABLED_"

Function Documentation

◆ getDestTypeString()

StringRef clang::tidy::google::readability::getDestTypeString ( const SourceManager & SM,
const LangOptions & LangOpts,
const ExplicitCastExpr * Expr )
static

◆ getReplaceRange()

clang::CharSourceRange clang::tidy::google::readability::getReplaceRange ( const ExplicitCastExpr * Expr)
static

◆ isGoogletestTestMacro()

bool clang::tidy::google::readability::isGoogletestTestMacro ( StringRef MacroName)
static

Definition at line 23 of file AvoidUnderscoreInGoogletestNameCheck.cpp.

◆ needsConstCast()

bool clang::tidy::google::readability::needsConstCast ( QualType SourceType,
QualType DestType )
static

◆ pointedUnqualifiedTypesAreEqual()

bool clang::tidy::google::readability::pointedUnqualifiedTypesAreEqual ( QualType T1,
QualType T2 )
static

◆ sameTypeAsWritten()

bool clang::tidy::google::readability::sameTypeAsWritten ( QualType X,
QualType Y )
static

Variable Documentation

◆ KDisabledTestPrefix

llvm::StringLiteral clang::tidy::google::readability::KDisabledTestPrefix = "DISABLED_"
constexpr

Definition at line 20 of file AvoidUnderscoreInGoogletestNameCheck.cpp.