21 #ifndef checkinternalH 
   22 #define checkinternalH 
   49         : 
Check(myName(), tokenizer, settings, errorLogger) {}
 
  111         return "cppcheck internal API usage";
 
Check Internal cppcheck API usage
 
void checkRedundantNextPrevious()
Check for inefficient usage of Token::next(), Token::previous() and Token::tokAt()
 
CheckInternal(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
This constructor is used when running checks.
 
void checkRedundantTokCheckError(const Token *tok)
 
void redundantNextPreviousError(const Token *tok, const std::string &func1, const std::string &func2)
 
void complexPatternError(const Token *tok, const std::string &pattern, const std::string &funcname)
 
void checkUnknownPattern()
Check for unknown (invalid) complex patterns like "%typ%"
 
std::string classInfo() const override
get information about this class, used to generate documentation
 
void runChecks(const Tokenizer &tokenizer, ErrorLogger *errorLogger) override
run checks, the token list is not simplified
 
void getErrorMessages(ErrorLogger *errorLogger, const Settings *settings) const override
get error messages
 
void orInComplexPattern(const Token *tok, const std::string &pattern, const std::string &funcname)
 
void multiComparePatternError(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 checkTokenSimpleMatchPatterns()
Check if a complex pattern is used inside Token::simpleMatch or Token::findsimplematch
 
void checkTokenMatchPatterns()
Check if a simple pattern is used inside Token::Match or Token::findmatch
 
void checkMissingPercentCharacter()
Check for missing % end character in Token::Match pattern
 
void unknownPatternError(const Token *tok, const std::string &pattern)
 
void checkExtraWhitespace()
Check if there is whitespace at the beginning or at the end of a pattern
 
void checkRedundantTokCheck()
Check if there is a redundant check for none-nullness of parameter before Match functions,...
 
static std::string myName()
 
CheckInternal()
This constructor is used when registering the CheckClass.
 
void simplePatternError(const Token *tok, const std::string &pattern, const std::string &funcname)
 
void extraWhitespaceError(const Token *tok, const std::string &pattern, const std::string &funcname)
 
Interface class that cppcheck uses to communicate with the checks.
 
This is an interface, which the class responsible of error logging should implement.
 
This is just a container for general settings so that we don't need to pass individual values to func...
 
SimpleEnableGroup< Checks > checks
 
bool isEnabled(T flag) const
 
The token list that the TokenList generates is a linked-list of this class.
 
The main purpose is to tokenize the source code.
 
const Settings & getSettings() const