Cppcheck
|
Classes | |
class | AnalyzerInformation |
Analyzer information. More... | |
class | Check |
Interface class that cppcheck uses to communicate with the checks. More... | |
class | CheckMemoryLeak |
Base class for memory leaks checking. More... | |
class | CppCheck |
This is the base class which will use other classes to do static code analysis for C and C++ code to find possible errors or places that could be improved. More... | |
class | ErrorMessage |
Wrapper for error messages, provided by reportErr() More... | |
class | ErrorLogger |
This is an interface, which the class responsible of error logging should implement. More... | |
struct | InternalError |
Simple container to be thrown when internal error is detected. More... | |
class | TerminateException |
struct | CWE |
class | ImportProject |
Importing project settings. More... | |
class | Library |
Library definitions handling. More... | |
class | MathLib |
simple math functions that uses operands stored in std::string. More... | |
class | Path |
Path handling routines. More... | |
class | Platform |
Platform settings. More... | |
class | Preprocessor |
The cppcheck preprocessor. More... | |
class | SimpleEnableGroup< T > |
class | Settings |
This is just a container for general settings so that we don't need to pass individual values to functions or constructors now or in the future when we might have even more detailed settings. More... | |
struct | Standards |
This is just a container for standards settings. More... | |
class | SuppressionList |
class for handling suppressions More... | |
struct | Suppressions |
class | TemplateSimplifier |
Simplify templates from the preprocessed and partially simplified code. More... | |
class | Token |
The token list that the TokenList generates is a linked-list of this class. More... | |
class | Tokenizer |
The main purpose is to tokenize the source code. More... | |
struct | TokensFrontBack |
This struct stores pointers to the front and back tokens of the list this token is in. More... | |
class | TokenList |
Typedefs | |
using | ErrorPathItem = std::pair< const Token *, std::string > |
using | ErrorPath = std::list< ErrorPathItem > |
Enumerations | |
enum class | Certainty { normal , inconclusive } |
enum class | Checks { unusedFunction , missingInclude , internalCheck } |
enum class | Severity { none , error , warning , style , performance , portability , information , debug , internal } |
enum class for severity. More... | |
using ErrorPath = std::list<ErrorPathItem> |
Definition at line 130 of file errortypes.h.
using ErrorPathItem = std::pair<const Token *, std::string> |
Definition at line 129 of file errortypes.h.
|
strong |
Enumerator | |
---|---|
normal | |
inconclusive |
Definition at line 54 of file errortypes.h.
|
strong |
Enumerator | |
---|---|
unusedFunction | |
missingInclude | |
internalCheck |
Definition at line 58 of file errortypes.h.
|
strong |
enum class for severity.
Used when reporting errors.
Definition at line 63 of file errortypes.h.
std::shared_ptr<Token> createTokenFromExpression | ( | const std::string & | returnValue, |
const Settings & | settings, | ||
bool | cpp, | ||
std::unordered_map< nonneg int, const Token * > * | lookupVarId = nullptr |
||
) |
Definition at line 1764 of file library.cpp.
References Token::astOperand1(), Token::createMutualLinks(), Token::Match(), Token::next(), nonneg, Library::returnValue(), startsWith(), and ValueFlow::valueFlowConstantFoldAST().
Referenced by evaluateLibraryFunction().
Definition at line 2714 of file token.cpp.
References findLambdaEndScope().
Definition at line 2686 of file token.cpp.
References findTypeEnd(), Token::link(), Token::linkAt(), Token::Match(), Token::next(), and Token::simpleMatch().
Referenced by findLambdaEndScope(), and Tokenizer::simplifyVarDecl().
Definition at line 2674 of file token.cpp.
References Token::link(), Token::Match(), and Token::next().
Referenced by findLambdaEndScope().
CPPCHECKLIB const Library::Container* getLibraryContainer | ( | const Token * | tok | ) |
Definition at line 1731 of file library.cpp.
References ValueFlow::Value::Address, astIsPointer(), Token::astOperand1(), ValueType::container, Token::isUnaryOp(), and Token::valueType().
Referenced by astIsContainer(), astIsContainerView(), astIsNonStringContainer(), getContainerYield(), getLifetimeTokens(), isContainerSizeChangedByFunction(), ContainerExpressionAnalyzer::isWritable(), CheckStl::outOfBounds(), valueFlowArrayElement(), valueFlowContainerSize(), valueFlowImpossibleValues(), and ContainerExpressionAnalyzer::writeValue().
MathLib::value operator% | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1335 of file mathlib.cpp.
References MathLib::value::calc().
MathLib::value operator& | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1340 of file mathlib.cpp.
References MathLib::value::calc().
MathLib::value operator* | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1325 of file mathlib.cpp.
References MathLib::value::calc().
MathLib::value operator+ | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1315 of file mathlib.cpp.
References MathLib::value::calc().
MathLib::value operator- | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1320 of file mathlib.cpp.
References MathLib::value::calc().
MathLib::value operator/ | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1330 of file mathlib.cpp.
References MathLib::value::calc().
MathLib::value operator<< | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1355 of file mathlib.cpp.
References MathLib::value::shiftLeft().
MathLib::value operator>> | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1360 of file mathlib.cpp.
References MathLib::value::shiftRight().
MathLib::value operator^ | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1350 of file mathlib.cpp.
References MathLib::value::calc().
MathLib::value operator| | ( | const MathLib::value & | v1, |
const MathLib::value & | v2 | ||
) |
Definition at line 1345 of file mathlib.cpp.
References MathLib::value::calc().
std::string replaceStr | ( | std::string | s, |
const std::string & | from, | ||
const std::string & | to | ||
) |
Replace substring.
Example replaceStr("1,NR,3", "NR", "2") => "1,2,3"
Definition at line 887 of file errorlogger.cpp.
Referenced by ErrorMessage::ErrorMessage(), CTU::FileInfo::getErrorPath(), and ErrorMessage::setmsg().
CPPCHECKLIB Severity severityFromString | ( | const std::string & | severity | ) |
Definition at line 76 of file errortypes.cpp.
References debug, error, information, internal, none, performance, portability, style, and warning.
Referenced by ErrorMessage::deserialize(), ErrorMessage::ErrorMessage(), CppCheck::executeAddons(), GuiSeverity::fromString(), Library::loadFunction(), and CmdLineParser::parseFromArgs().
CPPCHECKLIB std::string severityToString | ( | Severity | severity | ) |
Definition at line 50 of file errortypes.cpp.
References debug, error, information, internal, none, performance, portability, style, and warning.
Referenced by ResultsTree::copy(), ErrorLogger::plistData(), ErrorMessage::serialize(), ErrorMessage::toString(), GuiSeverity::toString(), and ErrorMessage::toXML().
CPPCHECKLIB void substituteTemplateFormatStatic | ( | std::string & | templateFormat | ) |
replaces the static parts of the location template
Definition at line 911 of file errorlogger.cpp.
References replaceColors(), and replaceSpecialChars().
Referenced by CmdLineParser::parseFromArgs().
CPPCHECKLIB void substituteTemplateLocationStatic | ( | std::string & | templateLocation | ) |
replaces the static parts of the location template
Definition at line 917 of file errorlogger.cpp.
References replaceColors(), and replaceSpecialChars().
Referenced by CmdLineParser::parseFromArgs().
|
static |