clang-tools 22.0.0git
|
Classes | |
class | ConfusableIdentifierCheck |
Finds symbol which have confusable identifiers, i.e. More... | |
class | ConstCorrectnessCheck |
This check warns on variables which could be declared const but are not. More... | |
class | CoroutineHostileRAIICheck |
Detects when objects of certain hostile RAII types persists across suspension points in a coroutine. More... | |
class | DefinitionsInHeadersCheck |
Finds non-extern non-inline function and variable definitions in header files, which can lead to potential ODR violations. More... | |
class | HeaderIncludeCycleCheck |
Check detects cyclic #include dependencies between user-defined headers. More... | |
class | IncludeCleanerCheck |
Checks for unused and missing includes. More... | |
class | MiscModule |
class | MisleadingBidirectionalCheck |
class | MisleadingIdentifierCheck |
class | MisplacedConstCheck |
This check diagnoses when a const qualifier is applied to a typedef to a pointer type rather than to the pointee. More... | |
class | NewDeleteOverloadsCheck |
class | NonCopyableObjectsCheck |
The check flags dereferences and non-pointer declarations of objects that are not meant to be passed by value, such as C FILE objects. More... | |
class | NonPrivateMemberVariablesInClassesCheck |
This checker finds classes that not only contain the data (non-static member variables), but also have logic (non-static member functions), and diagnoses all member variables that have any other scope other than private. More... | |
class | NoRecursionCheck |
Finds strongly connected functions (by analyzing call graph for SCC's that are loops), diagnoses each function in the cycle, and displays one example of possible call graph loop (recursion). More... | |
class | OverrideWithDifferentVisibilityCheck |
Finds virtual function overrides with different visibility than the function in the base class. More... | |
class | RedundantExpressionCheck |
The checker detects expressions that are redundant, because they contain ineffective, useless parts. More... | |
class | StaticAssertCheck |
Replaces assert() with static_assert() if the condition is evaluatable at compile time. More... | |
class | ThrowByValueCatchByReferenceCheck |
Checks for locations that do not throw by value. More... | |
class | UnconventionalAssignOperatorCheck |
Finds declarations of assignment operators with the wrong return and/or argument types and definitions with good return type but wrong return statements. More... | |
class | UniqueptrResetReleaseCheck |
Find and replace unique_ptr::reset(release()) with std::move(). More... | |
class | UnusedAliasDeclsCheck |
Finds unused namespace alias declarations. More... | |
class | UnusedParametersCheck |
Finds unused parameters and fixes them, so that -Wunused-parameter can be turned on. More... | |
class | UnusedUsingDeclsCheck |
Finds unused using declarations. More... | |
class | UseAnonymousNamespaceCheck |
Warns when using 'static' functions or variables at global scope, and suggests moving them to an anonymous namespace. More... | |
class | UseInternalLinkageCheck |
Detects variables and functions that can be marked as static or moved into an anonymous namespace to enforce internal linkage. More... |
Typedefs | |
using | DeclsWithinContextMap |
Enumerations | |
enum class | VariableCategory { Value , Reference , Pointer } |
Classify for a variable in what the Const-Check is interested. More... |
Functions | |
static llvm::SmallString< 64U > | skeleton (StringRef Name) |
static bool | addToContext (DeclsWithinContextMap &DeclsWithinContext, const Decl *Context, Entry E) |
static void | addToEnclosingContexts (DeclsWithinContextMap &DeclsWithinContext, const Decl *Parent, const NamedDecl *ND) |
static bool | isUnassignedAL (llvm::UTF32 CP) |
static bool | isUnassignedR (llvm::UTF32 CP) |
static bool | isR (llvm::UTF32 CP) |
static bool | hasRTLCharacters (StringRef Buffer) |
static QualType | guessAlternateQualification (ASTContext &Context, QualType QT) |
static OverloadedOperatorKind | getCorrespondingOverload (const FunctionDecl *FD) |
static const char * | getOperatorName (OverloadedOperatorKind K) |
static bool | areCorrespondingOverloads (const FunctionDecl *LHS, const FunctionDecl *RHS) |
static bool | hasCorrespondingOverloadInBaseClass (const CXXMethodDecl *MD, const CXXRecordDecl *RD=nullptr) |
static bool | exprEvaluatesToZero (BinaryOperatorKind Opcode, APSInt Value) |
static bool | exprEvaluatesToBitwiseNegatedZero (BinaryOperatorKind Opcode, APSInt Value) |
static bool | exprEvaluatesToSymbolic (BinaryOperatorKind Opcode, APSInt Value) |
template<typename T> | |
static CharSourceRange | removeNode (const MatchFinder::MatchResult &Result, const T *PrevNode, const T *Node, const T *NextNode) |
static FixItHint | removeParameter (const MatchFinder::MatchResult &Result, const FunctionDecl *Function, unsigned Index) |
static FixItHint | removeArgument (const MatchFinder::MatchResult &Result, const CallExpr *Call, unsigned Index) |
static bool | shouldCheckDecl (const Decl *TargetDecl) |
Variables | |
static constexpr StringRef | Message |
Definition at line 104 of file ConfusableIdentifierCheck.cpp.
|
strong |
Classify for a variable in what the Const-Check is interested.
Enumerator | |
---|---|
Value | |
Reference | |
Pointer |
Definition at line 141 of file ConstCorrectnessCheck.cpp.
|
static |
Definition at line 107 of file ConfusableIdentifierCheck.cpp.
Referenced by addToEnclosingContexts().
|
static |
Definition at line 128 of file ConfusableIdentifierCheck.cpp.
References addToContext().
Referenced by clang::tidy::misc::ConfusableIdentifierCheck::onEndOfTranslationUnit().
|
static |
Definition at line 96 of file NewDeleteOverloadsCheck.cpp.
References getCorrespondingOverload().
Referenced by hasCorrespondingOverloadInBaseClass().
|
static |
Definition at line 1151 of file RedundantExpressionCheck.cpp.
References Value.
|
static |
Definition at line 1156 of file RedundantExpressionCheck.cpp.
References Value.
|
static |
Definition at line 1147 of file RedundantExpressionCheck.cpp.
References Value.
|
static |
Definition at line 64 of file NewDeleteOverloadsCheck.cpp.
Referenced by areCorrespondingOverloads(), and clang::tidy::misc::NewDeleteOverloadsCheck::onEndOfTranslationUnit().
|
static |
Definition at line 80 of file NewDeleteOverloadsCheck.cpp.
Referenced by clang::tidy::misc::NewDeleteOverloadsCheck::onEndOfTranslationUnit().
|
static |
Definition at line 33 of file MisplacedConstCheck.cpp.
Referenced by clang::tidy::misc::MisplacedConstCheck::check().
|
static |
Definition at line 102 of file NewDeleteOverloadsCheck.cpp.
References areCorrespondingOverloads(), and hasCorrespondingOverloadInBaseClass().
Referenced by hasCorrespondingOverloadInBaseClass(), and clang::tidy::misc::NewDeleteOverloadsCheck::onEndOfTranslationUnit().
|
static |
Definition at line 122 of file MisleadingIdentifier.cpp.
References isR(), isUnassignedAL(), and isUnassignedR().
Referenced by clang::tidy::misc::MisleadingIdentifierCheck::check().
|
static |
Definition at line 41 of file MisleadingIdentifier.cpp.
Referenced by hasRTLCharacters().
|
static |
Definition at line 16 of file MisleadingIdentifier.cpp.
Referenced by hasRTLCharacters().
|
static |
Definition at line 28 of file MisleadingIdentifier.cpp.
Referenced by hasRTLCharacters().
|
static |
Definition at line 79 of file UnusedParametersCheck.cpp.
References removeNode().
|
static |
Definition at line 53 of file UnusedParametersCheck.cpp.
Referenced by removeArgument(), and removeParameter().
|
static |
Definition at line 70 of file UnusedParametersCheck.cpp.
References removeNode().
|
static |
Definition at line 41 of file UnusedUsingDeclsCheck.cpp.
Referenced by clang::tidy::misc::UnusedUsingDeclsCheck::check().
|
static |
Definition at line 48 of file ConfusableIdentifierCheck.cpp.
References clang::tidy::X().
Referenced by clang::tidy::misc::ConfusableIdentifierCheck::onEndOfTranslationUnit().
|
staticconstexpr |
Definition at line 139 of file UseInternalLinkageCheck.cpp.
Referenced by clang::tidy::misc::RedundantExpressionCheck::check(), and clang::tidy::misc::UseInternalLinkageCheck::check().