clang-tools
10.0.0git
|
Classes | |
class | AvoidGotoCheck |
The usage of goto for control flow is error prone and should be replaced with looping constructs. More... | |
class | CppCoreGuidelinesModule |
A module containing checks of the C++ Core Guidelines. More... | |
class | InitVariablesCheck |
Find uninitialized local variables. More... | |
class | InterfacesGlobalInitCheck |
Flags possible initialization order issues of static variables. More... | |
class | MacroUsageCheck |
Find macro usage that is considered problematic because better language constructs exist for the task. More... | |
class | NarrowingConversionsCheck |
Checks for narrowing conversions, e.g: int i = 0; i += 0.1;. More... | |
class | NoMallocCheck |
This checker is concerned with C-style memory management and suggest modern alternatives to it. More... | |
class | OwningMemoryCheck |
Checks for common use cases for gsl::owner and enforces the unique owner nature of it whenever possible. More... | |
class | ProBoundsArrayToPointerDecayCheck |
This check flags all array to pointer decays. More... | |
class | ProBoundsConstantArrayIndexCheck |
This checks that all array subscriptions on static arrays and std::arrays have a constant index and are within bounds. More... | |
class | ProBoundsPointerArithmeticCheck |
Flags all kinds of pointer arithmetic that have result of pointer type, i.e. More... | |
class | ProTypeConstCastCheck |
This check flags all instances of const_cast. More... | |
class | ProTypeCstyleCastCheck |
This check flags all use of C-style casts that perform a static_cast downcast, const_cast, or reinterpret_cast. More... | |
class | ProTypeMemberInitCheck |
Implements C++ Core Guidelines Type.6. More... | |
class | ProTypeReinterpretCastCheck |
Flags all occurrences of reinterpret_cast. More... | |
class | ProTypeStaticCastDowncastCheck |
Checks for usages of static_cast, where a base class is downcasted to a derived class. More... | |
class | ProTypeUnionAccessCheck |
This check flags all access to members of unions. More... | |
class | ProTypeVarargCheck |
This check flags all calls to c-style variadic functions and all use of va_arg. More... | |
class | SlicingCheck |
Flags slicing (incomplete copying of an object's state) of member variables or vtable. More... | |
class | SpecialMemberFunctionsCheck |
Checks for classes where some, but not all, of the special member functions are defined. More... | |
Functions | |
static ClangTidyModuleRegistry::Add< CppCoreGuidelinesModule > | X ("cppcoreguidelines-module", "Adds checks for the C++ Core Guidelines.") |
static const BuiltinType * | getBuiltinType (const Expr &E) |
static QualType | getUnqualifiedType (const Expr &E) |
static APValue | getConstantExprValue (const ASTContext &Ctx, const Expr &E) |
static bool | getIntegerConstantExprValue (const ASTContext &Context, const Expr &E, llvm::APSInt &Value) |
static bool | getFloatingConstantExprValue (const ASTContext &Context, const Expr &E, llvm::APFloat &Value) |
static IntegerRange | createFromType (const ASTContext &Context, const BuiltinType &T) |
static bool | isWideEnoughToHold (const ASTContext &Context, const BuiltinType &FromType, const BuiltinType &ToType) |
static bool | isWideEnoughToHold (const ASTContext &Context, const llvm::APSInt &IntegerConstant, const BuiltinType &ToType) |
static llvm::SmallString< 64 > | getValueAsString (const llvm::APSInt &Value, uint64_t HexBits) |
static bool | needsConstCast (QualType SourceType, QualType DestType) |
static bool | isIncompleteOrZeroLengthArrayType (ASTContext &Context, QualType T) |
static bool | isEmpty (ASTContext &Context, const QualType &Type) |
static const char * | getInitializer (QualType QT, bool UseAssignment) |
static bool | hasSingleVariadicArgumentWithValue (const CallExpr *C, uint64_t I) |
static llvm::StringRef | toString (SpecialMemberFunctionsCheck::SpecialMemberFunctionKind K) |
static std::string | join (ArrayRef< SpecialMemberFunctionsCheck::SpecialMemberFunctionKind > SMFS, llvm::StringRef AndOr) |
Variables | |
const internal::VariadicDynCastAllOfMatcher< Stmt, VAArgExpr > | vAArgExpr |
|
static |
Definition at line 119 of file NarrowingConversionsCheck.cpp.
Referenced by isWideEnoughToHold().
|
static |
Definition at line 64 of file NarrowingConversionsCheck.cpp.
|
static |
Definition at line 72 of file NarrowingConversionsCheck.cpp.
|
static |
Definition at line 91 of file NarrowingConversionsCheck.cpp.
|
static |
Definition at line 343 of file ProTypeMemberInitCheck.cpp.
|
static |
Definition at line 82 of file NarrowingConversionsCheck.cpp.
|
static |
Definition at line 68 of file NarrowingConversionsCheck.cpp.
|
static |
Definition at line 162 of file NarrowingConversionsCheck.cpp.
|
static |
Definition at line 31 of file ProTypeVarargCheck.cpp.
|
static |
Definition at line 336 of file ProTypeMemberInitCheck.cpp.
References isIncompleteOrZeroLengthArrayType().
|
static |
Definition at line 322 of file ProTypeMemberInitCheck.cpp.
Referenced by isEmpty().
|
static |
Definition at line 147 of file NarrowingConversionsCheck.cpp.
References createFromType().
|
static |
Definition at line 155 of file NarrowingConversionsCheck.cpp.
References createFromType().
|
static |
Definition at line 81 of file SpecialMemberFunctionsCheck.cpp.
References toString().
Referenced by rename_check::deleteMatchingLines(), rename_check::generateCommentLineHeader(), rename_check::generateCommentLineSource(), add_new_check::get_camel_name(), gen_std::main(), clang-include-fixer::main(), run-clang-tidy::main(), rename_check::main(), clang::clangd::operator<<(), clang::clangd::replace(), run-find-all-symbols::run_find_all_symbols(), clang-tidy-diff::run_tidy(), run-clang-tidy::run_tidy(), clang::clangd::scopeToPath(), clang::tidy::utils::options::serializeStringList(), and clang::clangd::IncludeFixer::unresolvedNameRecorder().
|
static |
Definition at line 20 of file ProTypeCstyleCastCheck.cpp.
|
static |
Definition at line 58 of file SpecialMemberFunctionsCheck.cpp.
References clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::CopyAssignment, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::CopyConstructor, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::DefaultDestructor, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::Destructor, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::MoveAssignment, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::MoveConstructor, and clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::NonDefaultDestructor.
Referenced by clang::clangd::buildRenameEdit(), clang::clangd::URI::createFile(), join(), main(), and clang::clangd::readIndexFile().
|
static |
const internal::VariadicDynCastAllOfMatcher<Stmt, VAArgExpr> clang::tidy::cppcoreguidelines::vAArgExpr |
Definition at line 19 of file ProTypeVarargCheck.cpp.