clang-tools  11.0.0git
Classes | Enumerations | Functions | Variables
clang::tidy::readability Namespace Reference

Classes

class  AvoidConstParamsInDecls
 
class  BracesAroundStatementsCheck
 Checks that bodies of if statements and loops (for, range-for, do-while, and while) are inside braces. More...
 
class  ConstReturnTypeCheck
 For any function whose return type is const-qualified, suggests removal of the const qualifier from that return type. More...
 
class  ContainerSizeEmptyCheck
 Checks whether a call to the size() method can be replaced with a call to empty(). More...
 
class  ConvertMemberFunctionsToStatic
 This check finds C++ class methods than can be made static because they don't use the 'this' pointer. More...
 
class  DeletedDefaultCheck
 Checks when a constructor or an assignment operator is marked as '= default' but is actually deleted by the compiler. More...
 
class  DeleteNullPointerCheck
 Check whether the 'if' statement is unnecessary before calling 'delete' on a pointer. More...
 
class  ElseAfterReturnCheck
 Flags the usages of else after return. More...
 
class  FindUsageOfThis
 
class  FunctionSizeCheck
 Checks for large functions based on various metrics. More...
 
class  IdentifierNamingCheck
 Checks for identifiers naming style mismatch. More...
 
class  ImplicitBoolConversionCheck
 Checks for use of implicit bool conversions in expressions. More...
 
class  InconsistentDeclarationParameterNameCheck
 Checks for declarations of functions which differ in parameter names. More...
 
class  IsolateDeclarationCheck
 This check diagnoses all DeclStmt's declaring more than one variable and tries to refactor the code to one statement per declaration. More...
 
class  MagicNumbersCheck
 Detects magic numbers, integer and floating point literals embedded in code. More...
 
class  MakeMemberFunctionConstCheck
 Finds non-static member functions that can be made 'const'. More...
 
class  MisleadingIndentationCheck
 Checks the code for dangling else, and possible misleading indentations due to missing braces. More...
 
class  MisplacedArrayIndexCheck
 Warn about unusual array index syntax (index[array] instead of array[index]). More...
 
class  NamedParameterCheck
 Find functions with unnamed arguments. More...
 
class  NamespaceCommentCheck
 Checks that long namespaces have a closing comment. More...
 
class  NonConstParameterCheck
 Warn when a pointer function parameter can be const. More...
 
class  QualifiedAutoCheck
 Finds variables declared as auto that could be declared as: 'auto*' or 'const auto *' and reference variables declared as: 'const auto &'. More...
 
class  ReadabilityModule
 
class  RedundantAccessSpecifiersCheck
 Detects redundant access specifiers inside classes, structs, and unions. More...
 
class  RedundantControlFlowCheck
 Eliminates redundant return statements at the end of a function that returns void. More...
 
class  RedundantDeclarationCheck
 Find redundant variable declarations. More...
 
class  RedundantFunctionPtrDereferenceCheck
 Eliminate redundant dereferences of a function pointer. More...
 
class  RedundantMemberInitCheck
 Finds member initializations that are unnecessary because the same default constructor would be called if they were not present. More...
 
class  RedundantPreprocessorCheck
 This check flags redundant preprocessor directives: nested directives with the same condition. More...
 
class  RedundantSmartptrGetCheck
 Find and remove redundant calls to smart pointer's .get() method. More...
 
class  RedundantStringCStrCheck
 Finds unnecessary calls to std::string::c_str(). More...
 
class  RedundantStringInitCheck
 Finds unnecessary string initializations. More...
 
class  SimplifyBooleanExprCheck
 Looks for boolean expressions involving boolean constants and simplifies them to use the appropriate boolean expression directly. More...
 
class  SimplifySubscriptExprCheck
 Simplifies subscript expressions. More...
 
class  StaticAccessedThroughInstanceCheck
 Checks for member expressions that access static members through instances and replaces them with uses of the appropriate qualified-id. More...
 
class  StaticDefinitionInAnonymousNamespaceCheck
 Finds static function and variable definitions in anonymous namespace. More...
 
class  StringCompareCheck
 This check flags all calls compare when used to check for string equality or inequality. More...
 
class  UniqueptrDeleteReleaseCheck
 Flags statements of the form delete <unique_ptr expr>.release(); and replaces them with: <unique_ptr expr> = nullptr; More...
 
class  UppercaseLiteralSuffixCheck
 Detects when the integral literal or floating point literal has non-uppercase suffix, and suggests to make the suffix uppercase. More...
 
class  UseAnyOfAllOfCheck
 Finds ranged-based for loops that can be replaced by a call to std::any_of or std::all_of. More...
 

Enumerations

enum  StyleKind { SK_Count, SK_Invalid }
 
enum  UsageKind { Unused, Const, NonConst }
 

Functions

static llvm::Optional< Token > ConstTok (CharSourceRange Range, const MatchFinder::MatchResult &Result)
 
static llvm::Optional< Token > findConstToRemove (const FunctionDecl *Def, const MatchFinder::MatchResult &Result)
 
static CheckResult checkDef (const clang::FunctionDecl *Def, const MatchFinder::MatchResult &MatchResult)
 
 AST_MATCHER (CXXMethodDecl, isStatic)
 
 AST_MATCHER (CXXMethodDecl, hasTrivialBody)
 
 AST_MATCHER (CXXMethodDecl, isOverloadedOperator)
 
 AST_MATCHER (CXXRecordDecl, hasAnyDependentBases)
 
 AST_MATCHER (CXXMethodDecl, isTemplate)
 
 AST_MATCHER (CXXMethodDecl, isDependentContext)
 
 AST_MATCHER (CXXMethodDecl, isInsideMacroDefinition)
 
 AST_MATCHER_P (CXXMethodDecl, hasCanonicalDecl, ast_matchers::internal::Matcher< CXXMethodDecl >, InnerMatcher)
 
 AST_MATCHER (CXXMethodDecl, usesThis)
 
static StringRef getStringFromRange (SourceManager &SourceMgr, const LangOptions &LangOpts, SourceRange Range)
 Obtain the original source code text from a SourceRange. More...
 
static SourceRange getLocationOfConst (const TypeSourceInfo *TSI, SourceManager &SourceMgr, const LangOptions &LangOpts)
 
static const DeclRefExpr * findUsage (const Stmt *Node, int64_t DeclIdentifier)
 
static const DeclRefExpr * findUsageRange (const Stmt *Node, const llvm::ArrayRef< int64_t > &DeclIdentifiers)
 
static const DeclRefExpr * checkInitDeclUsageInElse (const IfStmt *If)
 
static const DeclRefExpr * checkConditionVarUsageInElse (const IfStmt *If)
 
static bool containsDeclInScope (const Stmt *Node)
 
static void removeElseAndBrackets (DiagnosticBuilder &Diag, ASTContext &Context, const Stmt *Else, SourceLocation ElseLoc)
 
static bool matchesStyle (StringRef Name, IdentifierNamingCheck::NamingStyle Style)
 
static std::string fixupWithCase (StringRef Name, IdentifierNamingCheck::CaseType Case)
 
static bool isParamInMainLikeFunction (const ParmVarDecl &ParmDecl, bool IncludeMainLike)
 
static std::string fixupWithStyle (StringRef Name, const IdentifierNamingCheck::NamingStyle &Style)
 
static StyleKind findStyleKind (const NamedDecl *D, const std::vector< llvm::Optional< IdentifierNamingCheck::NamingStyle >> &NamingStyles, bool IgnoreMainLikeFunctions)
 
static SourceLocation findStartOfIndirection (SourceLocation Start, int Indirections, const SourceManager &SM, const LangOptions &LangOpts)
 
static bool isMacroID (SourceRange R)
 
static int countIndirections (const Type *T, int Indirections=0)
 This function counts the number of written indirections for the given Type T. More...
 
static bool typeIsMemberPointer (const Type *T)
 
static Optional< std::vector< SourceRange > > declRanges (const DeclStmt *DS, const SourceManager &SM, const LangOptions &LangOpts)
 This function tries to extract the SourceRanges that make up all declarations in this DeclStmt. More...
 
static Optional< std::vector< StringRef > > collectSourceRanges (llvm::ArrayRef< SourceRange > Ranges, const SourceManager &SM, const LangOptions &LangOpts)
 
static std::vector< std::string > createIsolatedDecls (llvm::ArrayRef< StringRef > Snippets)
 Expects a vector {TypeSnippet, Firstdecl, SecondDecl, ...}. More...
 
 AST_MATCHER (CXXMethodDecl, usesThisAsConst)
 
static SourceLocation getConstInsertionPoint (const CXXMethodDecl *M)
 
static const IfStmt * getPrecedingIf (const SourceManager &SM, ASTContext *Context, const IfStmt *If)
 
static bool locationsInSameFile (const SourceManager &Sources, SourceLocation Loc1, SourceLocation Loc2)
 
static llvm::Optional< std::string > getNamespaceNameAsWritten (SourceLocation &Loc, const SourceManager &Sources, const LangOptions &LangOpts)
 
static ClangTidyModuleRegistry::Add< ReadabilityModuleX ("readability-module", "Adds readability-related checks.")
 
 AST_MATCHER (FunctionDecl, doesDeclarationForceExternallyVisibleDefinition)
 
static ast_matchers::internal::Matcher< NamedDecl > hasAnyNameStdString (std::vector< std::string > Names)
 
static std::vector< std::string > removeNamespaces (const std::vector< std::string > &Names)
 
static const CXXConstructExpr * getConstructExpr (const CXXCtorInitializer &CtorInit)
 
static llvm::Optional< SourceRange > getConstructExprArgRange (const CXXConstructExpr &Construct)
 
bool containsBoolLiteral (const Expr *E)
 
static unsigned getNameSpecifierNestingLevel (const QualType &QType)
 
static bool isViableLoop (const CXXForRangeStmt &S, ASTContext &Context)
 

Variables

static const char ReturnStr [] = "return"
 
static const char ContinueStr [] = "continue"
 
static const char BreakStr [] = "break"
 
static const char ThrowStr [] = "throw"
 
static const char WarningMessage [] = "do not use 'else' after '%0'"
 
static const char WarnOnUnfixableStr [] = "WarnOnUnfixable"
 
static const char WarnOnConditionVariablesStr [] = "WarnOnConditionVariables"
 
static StringRef const StyleNames []
 
const char DefaultIgnoredIntegerValues [] = "1;2;3;4;"
 
const char DefaultIgnoredFloatingPointValues [] = "1.0;100.0;"
 
const char DefaultStringNames [] = "::std::basic_string"
 
static const char kDefaultTypes []
 
static const StringRef CompareMessage
 

Enumeration Type Documentation

◆ StyleKind

Enumerator
SK_Count 
SK_Invalid 

Definition at line 105 of file IdentifierNamingCheck.cpp.

◆ UsageKind

Enumerator
Unused 
Const 
NonConst 

Definition at line 52 of file MakeMemberFunctionConstCheck.cpp.

Function Documentation

◆ AST_MATCHER() [1/10]

clang::tidy::readability::AST_MATCHER ( FunctionDecl  ,
doesDeclarationForceExternallyVisibleDefinition   
)

Definition at line 20 of file RedundantDeclarationCheck.cpp.

◆ AST_MATCHER() [2/10]

clang::tidy::readability::AST_MATCHER ( CXXMethodDecl  ,
isStatic   
)

Definition at line 24 of file ConvertMemberFunctionsToStatic.cpp.

◆ AST_MATCHER() [3/10]

clang::tidy::readability::AST_MATCHER ( CXXMethodDecl  ,
hasTrivialBody   
)

Definition at line 26 of file ConvertMemberFunctionsToStatic.cpp.

◆ AST_MATCHER() [4/10]

clang::tidy::readability::AST_MATCHER ( CXXMethodDecl  ,
isOverloadedOperator   
)

Definition at line 28 of file ConvertMemberFunctionsToStatic.cpp.

◆ AST_MATCHER() [5/10]

clang::tidy::readability::AST_MATCHER ( CXXRecordDecl  ,
hasAnyDependentBases   
)

Definition at line 32 of file ConvertMemberFunctionsToStatic.cpp.

◆ AST_MATCHER() [6/10]

clang::tidy::readability::AST_MATCHER ( CXXMethodDecl  ,
isTemplate   
)

Definition at line 36 of file ConvertMemberFunctionsToStatic.cpp.

◆ AST_MATCHER() [7/10]

clang::tidy::readability::AST_MATCHER ( CXXMethodDecl  ,
isDependentContext   
)

Definition at line 40 of file ConvertMemberFunctionsToStatic.cpp.

◆ AST_MATCHER() [8/10]

clang::tidy::readability::AST_MATCHER ( CXXMethodDecl  ,
isInsideMacroDefinition   
)

Definition at line 44 of file ConvertMemberFunctionsToStatic.cpp.

◆ AST_MATCHER() [9/10]

clang::tidy::readability::AST_MATCHER ( CXXMethodDecl  ,
usesThis   
)

Definition at line 58 of file ConvertMemberFunctionsToStatic.cpp.

References E.

◆ AST_MATCHER() [10/10]

clang::tidy::readability::AST_MATCHER ( CXXMethodDecl  ,
usesThisAsConst   
)

Definition at line 203 of file MakeMemberFunctionConstCheck.cpp.

◆ AST_MATCHER_P()

clang::tidy::readability::AST_MATCHER_P ( CXXMethodDecl  ,
hasCanonicalDecl  ,
ast_matchers::internal::Matcher< CXXMethodDecl >  ,
InnerMatcher   
)

Definition at line 53 of file ConvertMemberFunctionsToStatic.cpp.

◆ checkConditionVarUsageInElse()

static const DeclRefExpr* clang::tidy::readability::checkConditionVarUsageInElse ( const IfStmt *  If)
static

Definition at line 80 of file ElseAfterReturnCheck.cpp.

◆ checkDef()

static CheckResult clang::tidy::readability::checkDef ( const clang::FunctionDecl *  Def,
const MatchFinder::MatchResult &  MatchResult 
)
static

Definition at line 70 of file ConstReturnTypeCheck.cpp.

◆ checkInitDeclUsageInElse()

static const DeclRefExpr* clang::tidy::readability::checkInitDeclUsageInElse ( const IfStmt *  If)
static

Definition at line 63 of file ElseAfterReturnCheck.cpp.

◆ collectSourceRanges()

static Optional<std::vector<StringRef> > clang::tidy::readability::collectSourceRanges ( llvm::ArrayRef< SourceRange >  Ranges,
const SourceManager &  SM,
const LangOptions &  LangOpts 
)
static

Definition at line 204 of file IsolateDeclarationCheck.cpp.

◆ ConstTok()

static llvm::Optional<Token> clang::tidy::readability::ConstTok ( CharSourceRange  Range,
const MatchFinder::MatchResult &  Result 
)
static

Definition at line 50 of file AvoidConstParamsInDecls.cpp.

◆ containsBoolLiteral()

bool clang::tidy::readability::containsBoolLiteral ( const Expr *  E)

Definition at line 343 of file SimplifyBooleanExprCheck.cpp.

◆ containsDeclInScope()

static bool clang::tidy::readability::containsDeclInScope ( const Stmt *  Node)
static

Definition at line 86 of file ElseAfterReturnCheck.cpp.

◆ countIndirections()

static int clang::tidy::readability::countIndirections ( const Type T,
int  Indirections = 0 
)
static

This function counts the number of written indirections for the given Type T.

It does NOT resolve typedefs as it's a helper for lexing the source code.

See also
declRanges

Definition at line 60 of file IsolateDeclarationCheck.cpp.

◆ createIsolatedDecls()

static std::vector<std::string> clang::tidy::readability::createIsolatedDecls ( llvm::ArrayRef< StringRef >  Snippets)
static

Expects a vector {TypeSnippet, Firstdecl, SecondDecl, ...}.

Definition at line 232 of file IsolateDeclarationCheck.cpp.

◆ declRanges()

static Optional<std::vector<SourceRange> > clang::tidy::readability::declRanges ( const DeclStmt *  DS,
const SourceManager &  SM,
const LangOptions &  LangOpts 
)
static

This function tries to extract the SourceRanges that make up all declarations in this DeclStmt.

The resulting vector has the structure {UnderlyingType, Decl1, Decl2, ...}. Each SourceRange is of the form [Begin, End). If any of the create ranges is invalid or in a macro the result will be None. If the DeclStmt contains only one declaration, the result is None. If the DeclStmt contains declarations other than VarDecl the result is None.

int * ptr1 = nullptr, value = 42;
// [ ][ ] [ ] - The ranges here are inclusive
Todo:
Generalize this function to take other declarations than VarDecl.

Definition at line 109 of file IsolateDeclarationCheck.cpp.

◆ findConstToRemove()

static llvm::Optional<Token> clang::tidy::readability::findConstToRemove ( const FunctionDecl *  Def,
const MatchFinder::MatchResult &  Result 
)
static

Definition at line 28 of file ConstReturnTypeCheck.cpp.

◆ findStartOfIndirection()

static SourceLocation clang::tidy::readability::findStartOfIndirection ( SourceLocation  Start,
int  Indirections,
const SourceManager &  SM,
const LangOptions &  LangOpts 
)
static

Definition at line 34 of file IsolateDeclarationCheck.cpp.

◆ findStyleKind()

static StyleKind clang::tidy::readability::findStyleKind ( const NamedDecl *  D,
const std::vector< llvm::Optional< IdentifierNamingCheck::NamingStyle >> &  NamingStyles,
bool  IgnoreMainLikeFunctions 
)
static

Definition at line 375 of file IdentifierNamingCheck.cpp.

References Decl, isParamInMainLikeFunction(), SK_Invalid, and Type.

◆ findUsage()

static const DeclRefExpr* clang::tidy::readability::findUsage ( const Stmt *  Node,
int64_t  DeclIdentifier 
)
static

Definition at line 30 of file ElseAfterReturnCheck.cpp.

◆ findUsageRange()

static const DeclRefExpr* clang::tidy::readability::findUsageRange ( const Stmt *  Node,
const llvm::ArrayRef< int64_t > &  DeclIdentifiers 
)
static

Definition at line 46 of file ElseAfterReturnCheck.cpp.

◆ fixupWithCase()

static std::string clang::tidy::readability::fixupWithCase ( StringRef  Name,
IdentifierNamingCheck::CaseType  Case 
)
static

◆ fixupWithStyle()

static std::string clang::tidy::readability::fixupWithStyle ( StringRef  Name,
const IdentifierNamingCheck::NamingStyle Style 
)
static

Definition at line 365 of file IdentifierNamingCheck.cpp.

◆ getConstInsertionPoint()

static SourceLocation clang::tidy::readability::getConstInsertionPoint ( const CXXMethodDecl *  M)
static

Definition at line 234 of file MakeMemberFunctionConstCheck.cpp.

◆ getConstructExpr()

static const CXXConstructExpr* clang::tidy::readability::getConstructExpr ( const CXXCtorInitializer &  CtorInit)
static

Definition at line 42 of file RedundantStringInitCheck.cpp.

◆ getConstructExprArgRange()

static llvm::Optional<SourceRange> clang::tidy::readability::getConstructExprArgRange ( const CXXConstructExpr &  Construct)
static

Definition at line 50 of file RedundantStringInitCheck.cpp.

References E.

◆ getLocationOfConst()

static SourceRange clang::tidy::readability::getLocationOfConst ( const TypeSourceInfo *  TSI,
SourceManager &  SourceMgr,
const LangOptions &  LangOpts 
)
static

Definition at line 107 of file ConvertMemberFunctionsToStatic.cpp.

◆ getNamespaceNameAsWritten()

static llvm::Optional<std::string> clang::tidy::readability::getNamespaceNameAsWritten ( SourceLocation &  Loc,
const SourceManager &  Sources,
const LangOptions &  LangOpts 
)
static

Definition at line 49 of file NamespaceCommentCheck.cpp.

◆ getNameSpecifierNestingLevel()

static unsigned clang::tidy::readability::getNameSpecifierNestingLevel ( const QualType &  QType)
static

Definition at line 19 of file StaticAccessedThroughInstanceCheck.cpp.

◆ getPrecedingIf()

static const IfStmt* clang::tidy::readability::getPrecedingIf ( const SourceManager &  SM,
ASTContext *  Context,
const IfStmt *  If 
)
static

Definition at line 19 of file MisleadingIndentationCheck.cpp.

◆ getStringFromRange()

static StringRef clang::tidy::readability::getStringFromRange ( SourceManager &  SourceMgr,
const LangOptions &  LangOpts,
SourceRange  Range 
)
static

Obtain the original source code text from a SourceRange.

Definition at line 96 of file ConvertMemberFunctionsToStatic.cpp.

◆ hasAnyNameStdString()

static ast_matchers::internal::Matcher<NamedDecl> clang::tidy::readability::hasAnyNameStdString ( std::vector< std::string >  Names)
static

Definition at line 24 of file RedundantStringInitCheck.cpp.

◆ isMacroID()

static bool clang::tidy::readability::isMacroID ( SourceRange  R)
static

Definition at line 52 of file IsolateDeclarationCheck.cpp.

◆ isParamInMainLikeFunction()

static bool clang::tidy::readability::isParamInMainLikeFunction ( const ParmVarDecl &  ParmDecl,
bool  IncludeMainLike 
)
static

Definition at line 303 of file IdentifierNamingCheck.cpp.

References Type.

Referenced by findStyleKind().

◆ isViableLoop()

static bool clang::tidy::readability::isViableLoop ( const CXXForRangeStmt &  S,
ASTContext &  Context 
)
static

Definition at line 75 of file UseAnyOfAllOfCheck.cpp.

◆ locationsInSameFile()

static bool clang::tidy::readability::locationsInSameFile ( const SourceManager &  Sources,
SourceLocation  Loc1,
SourceLocation  Loc2 
)
static

Definition at line 42 of file NamespaceCommentCheck.cpp.

◆ matchesStyle()

static bool clang::tidy::readability::matchesStyle ( StringRef  Name,
IdentifierNamingCheck::NamingStyle  Style 
)
static

Definition at line 174 of file IdentifierNamingCheck.cpp.

◆ removeElseAndBrackets()

static void clang::tidy::readability::removeElseAndBrackets ( DiagnosticBuilder &  Diag,
ASTContext &  Context,
const Stmt *  Else,
SourceLocation  ElseLoc 
)
static

Definition at line 96 of file ElseAfterReturnCheck.cpp.

◆ removeNamespaces()

static std::vector<std::string> clang::tidy::readability::removeNamespaces ( const std::vector< std::string > &  Names)
static

Definition at line 30 of file RedundantStringInitCheck.cpp.

◆ typeIsMemberPointer()

static bool clang::tidy::readability::typeIsMemberPointer ( const Type T)
static

Definition at line 81 of file IsolateDeclarationCheck.cpp.

◆ X()

static ClangTidyModuleRegistry::Add<ReadabilityModule> clang::tidy::readability::X ( "readability-module"  ,
"Adds readability-related checks."   
)
static

Variable Documentation

◆ BreakStr

const char clang::tidy::readability::BreakStr[] = "break"
static

Definition at line 24 of file ElseAfterReturnCheck.cpp.

◆ CompareMessage

const StringRef clang::tidy::readability::CompareMessage
static
Initial value:
= "do not use 'compare' to test equality "
"of strings; use the string equality "
"operator instead"

Definition at line 21 of file StringCompareCheck.cpp.

◆ ContinueStr

const char clang::tidy::readability::ContinueStr[] = "continue"
static

Definition at line 23 of file ElseAfterReturnCheck.cpp.

◆ DefaultIgnoredFloatingPointValues

const char clang::tidy::readability::DefaultIgnoredFloatingPointValues[] = "1.0;100.0;"

Definition at line 62 of file MagicNumbersCheck.cpp.

◆ DefaultIgnoredIntegerValues

const char clang::tidy::readability::DefaultIgnoredIntegerValues[] = "1;2;3;4;"

Definition at line 61 of file MagicNumbersCheck.cpp.

◆ DefaultStringNames

const char clang::tidy::readability::DefaultStringNames[] = "::std::basic_string"

Definition at line 21 of file RedundantStringInitCheck.cpp.

◆ kDefaultTypes

const char clang::tidy::readability::kDefaultTypes[]
static
Initial value:
=
"::std::basic_string;::std::basic_string_view;::std::vector;::std::array"

Definition at line 20 of file SimplifySubscriptExprCheck.cpp.

◆ ReturnStr

const char clang::tidy::readability::ReturnStr[] = "return"
static

Definition at line 22 of file ElseAfterReturnCheck.cpp.

◆ StyleNames

StringRef const clang::tidy::readability::StyleNames[]
static
Initial value:
= {
#define STRINGIZE(v)
}

Definition at line 113 of file IdentifierNamingCheck.cpp.

◆ ThrowStr

const char clang::tidy::readability::ThrowStr[] = "throw"
static

Definition at line 25 of file ElseAfterReturnCheck.cpp.

◆ WarningMessage

const char clang::tidy::readability::WarningMessage[] = "do not use 'else' after '%0'"
static

Definition at line 26 of file ElseAfterReturnCheck.cpp.

◆ WarnOnConditionVariablesStr

const char clang::tidy::readability::WarnOnConditionVariablesStr[] = "WarnOnConditionVariables"
static

Definition at line 28 of file ElseAfterReturnCheck.cpp.

◆ WarnOnUnfixableStr

const char clang::tidy::readability::WarnOnUnfixableStr[] = "WarnOnUnfixable"
static

Definition at line 27 of file ElseAfterReturnCheck.cpp.