clang-tools  16.0.0git
Classes | Functions | Variables
clang::tidy::google::readability Namespace Reference

Classes

class  AvoidCStyleCastsCheck
 Finds usages of C-style casts. More...
 
class  AvoidUnderscoreInGoogletestNameCheck
 For the user-facing documentation see: http://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 isGoogletestTestMacro (StringRef MacroName)
 

Variables

constexpr llvm::StringLiteral KDisabledTestPrefix = "DISABLED_"
 

Function Documentation

◆ getDestTypeString()

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

Definition at line 75 of file AvoidCStyleCastsCheck.cpp.

◆ getReplaceRange()

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

Definition at line 63 of file AvoidCStyleCastsCheck.cpp.

◆ isGoogletestTestMacro()

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

Definition at line 27 of file AvoidUnderscoreInGoogletestNameCheck.cpp.

◆ needsConstCast()

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

Definition at line 41 of file AvoidCStyleCastsCheck.cpp.

◆ pointedUnqualifiedTypesAreEqual()

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

Definition at line 54 of file AvoidCStyleCastsCheck.cpp.

Variable Documentation

◆ KDisabledTestPrefix

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

Definition at line 24 of file AvoidUnderscoreInGoogletestNameCheck.cpp.