clang-tools 20.0.0git
|
Classes | |
class | ExceptionBaseclassCheck |
Check for thrown exceptions and enforce they are all derived from std::exception. More... | |
class | HICPPModule |
class | IgnoredRemoveResultCheck |
Ensure that the result of std::remove, std::remove_if and std::unique are not ignored according to rule 17.5.1. More... | |
class | MultiwayPathsCoveredCheck |
Find occasions where not all codepaths are explicitly covered in code. More... | |
class | NoAssemblerCheck |
Find assembler statements. More... | |
class | SignedBitwiseCheck |
This check implements the rule 5.6.1 of the HICPP Standard, which disallows bitwise operations on signed integer types. More... | |
Functions | |
static ClangTidyModuleRegistry::Add< HICPPModule > | X ("hicpp-module", "Adds High-Integrity C++ checks.") |
static std::pair< std::size_t, bool > | countCaseLabels (const SwitchStmt *Switch) |
static std::size_t | twoPow (std::size_t Bits) |
This function calculate 2 ** Bits and returns numeric_limits<std::size_t>::max() if an overflow occurred. | |
static std::size_t | getNumberOfPossibleValues (QualType T, const ASTContext &Context) |
Get the number of possible values that can be switched on for the type T. | |
|
static |
Definition at line 50 of file MultiwayPathsCoveredCheck.cpp.
Referenced by clang::tidy::hicpp::MultiwayPathsCoveredCheck::check().
|
static |
Get the number of possible values that can be switched on for the type T.
Definition at line 79 of file MultiwayPathsCoveredCheck.cpp.
References twoPow().
|
static |
This function calculate 2 ** Bits and returns numeric_limits<std::size_t>::max() if an overflow occurred.
Definition at line 68 of file MultiwayPathsCoveredCheck.cpp.
Referenced by getNumberOfPossibleValues().
|
static |