|
| | CheckInternal (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) |
| | This constructor is used when running checks. More...
|
| |
| void | runChecks (const Tokenizer &tokenizer, ErrorLogger *errorLogger) override |
| | run checks, the token list is not simplified More...
|
| |
| void | checkTokenMatchPatterns () |
| | Check if a simple pattern is used inside Token::Match or Token::findmatch More...
|
| |
| void | checkTokenSimpleMatchPatterns () |
| | Check if a complex pattern is used inside Token::simpleMatch or Token::findsimplematch More...
|
| |
| void | checkMissingPercentCharacter () |
| | Check for missing % end character in Token::Match pattern More...
|
| |
| void | checkUnknownPattern () |
| | Check for unknown (invalid) complex patterns like "%typ%" More...
|
| |
| void | checkRedundantNextPrevious () |
| | Check for inefficient usage of Token::next(), Token::previous() and Token::tokAt() More...
|
| |
| void | checkExtraWhitespace () |
| | Check if there is whitespace at the beginning or at the end of a pattern More...
|
| |
| void | checkRedundantTokCheck () |
| | Check if there is a redundant check for none-nullness of parameter before Match functions, such as (tok && Token::Match(tok, "foo")) More...
|
| |
| void | multiComparePatternError (const Token *tok, const std::string &pattern, const std::string &funcname) |
| |
| void | simplePatternError (const Token *tok, const std::string &pattern, const std::string &funcname) |
| |
| void | complexPatternError (const Token *tok, const std::string &pattern, const std::string &funcname) |
| |
| void | missingPercentCharacterError (const Token *tok, const std::string &pattern, const std::string &funcname) |
| |
| void | unknownPatternError (const Token *tok, const std::string &pattern) |
| |
| void | redundantNextPreviousError (const Token *tok, const std::string &func1, const std::string &func2) |
| |
| void | orInComplexPattern (const Token *tok, const std::string &pattern, const std::string &funcname) |
| |
| void | extraWhitespaceError (const Token *tok, const std::string &pattern, const std::string &funcname) |
| |
| void | checkRedundantTokCheckError (const Token *tok) |
| |
| void | getErrorMessages (ErrorLogger *errorLogger, const Settings *settings) const override |
| | get error messages More...
|
| |
| std::string | classInfo () const override |
| | get information about this class, used to generate documentation More...
|
| |
|
| static std::list< Check * > & | instances () |
| | List of registered check classes. More...
|
| |
| static void | writeToErrorList (const ErrorMessage &errmsg) |
| | Write given error to stdout in xml format. More...
|
| |
| | Check (std::string aname, const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) |
| | This constructor is used when running checks. More...
|
| |
| void | reportError (const Token *tok, const Severity severity, const std::string &id, const std::string &msg) |
| | report an error More...
|
| |
| void | reportError (const Token *tok, const Severity severity, const std::string &id, const std::string &msg, const CWE &cwe, Certainty certainty) |
| | report an error More...
|
| |
| void | reportError (const std::list< const Token * > &callstack, Severity severity, const std::string &id, const std::string &msg) |
| | report an error More...
|
| |
| void | reportError (const std::list< const Token * > &callstack, Severity severity, const std::string &id, const std::string &msg, const CWE &cwe, Certainty certainty) |
| | report an error More...
|
| |
| void | reportError (const ErrorPath &errorPath, Severity severity, const char id[], const std::string &msg, const CWE &cwe, Certainty certainty) |
| |
| void | logChecker (const char id[]) |
| | log checker More...
|
| |
| ErrorPath | getErrorPath (const Token *errtok, const ValueFlow::Value *value, std::string bug) const |
| |
| bool | wrongData (const Token *tok, const char *str) |
| | Use WRONG_DATA in checkers when you check for wrong data. More...
|
| |
| static std::string | getMessageId (const ValueFlow::Value &value, const char id[]) |
| |
| const Tokenizer *const | mTokenizer {} |
| |
| const Settings *const | mSettings {} |
| |
| ErrorLogger *const | mErrorLogger {} |
| |
Check Internal cppcheck API usage
Definition at line 41 of file checkinternal.h.