|
Cppcheck
|
Check for 64-bit portability issues. More...
#include <check64bit.h>
Public Member Functions | |
| Check64BitPortability () | |
| This constructor is used when registering the Check64BitPortability. | |
| Check64BitPortability (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) | |
| This constructor is used when running checks. | |
| void | runChecks (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) |
| Run checks against the normal token list. | |
| void | runSimplifiedChecks (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) |
| Run checks against the simplified token list. | |
| void | pointerassignment () |
| Check for pointer assignment. | |
Private Member Functions | |
| void | assignmentAddressToIntegerError (const Token *tok) |
| void | assignmentIntegerToAddressError (const Token *tok) |
| void | returnIntegerError (const Token *tok) |
| void | returnPointerError (const Token *tok) |
| void | getErrorMessages (ErrorLogger *errorLogger, const Settings *settings) const |
| get error messages | |
| std::string | classInfo () const |
| get information about this class, used to generate documentation | |
Static Private Member Functions | |
| static std::string | myName () |
Check for 64-bit portability issues.
Definition at line 36 of file check64bit.h.
| Check64BitPortability::Check64BitPortability | ( | ) | [inline] |
This constructor is used when registering the Check64BitPortability.
Definition at line 39 of file check64bit.h.
| Check64BitPortability::Check64BitPortability | ( | const Tokenizer * | tokenizer, |
| const Settings * | settings, | ||
| ErrorLogger * | errorLogger | ||
| ) | [inline] |
This constructor is used when running checks.
Definition at line 43 of file check64bit.h.
| void Check64BitPortability::assignmentAddressToIntegerError | ( | const Token * | tok | ) | [private] |
Definition at line 119 of file check64bit.cpp.
References Severity::portability, and Check::reportError().
Referenced by getErrorMessages(), and pointerassignment().
| void Check64BitPortability::assignmentIntegerToAddressError | ( | const Token * | tok | ) | [private] |
Definition at line 130 of file check64bit.cpp.
References Severity::portability, and Check::reportError().
Referenced by getErrorMessages(), and pointerassignment().
| std::string Check64BitPortability::classInfo | ( | ) | const [inline, private, virtual] |
get information about this class, used to generate documentation
Implements Check.
Definition at line 82 of file check64bit.h.
| void Check64BitPortability::getErrorMessages | ( | ErrorLogger * | errorLogger, |
| const Settings * | settings | ||
| ) | const [inline, private, virtual] |
get error messages
Implements Check.
Definition at line 70 of file check64bit.h.
References assignmentAddressToIntegerError(), assignmentIntegerToAddressError(), returnIntegerError(), and returnPointerError().
| static std::string Check64BitPortability::myName | ( | ) | [inline, static, private] |
Definition at line 78 of file check64bit.h.
Check for pointer assignment.
Definition at line 45 of file check64bit.cpp.
References Check::_settings, Check::_tokenizer, assignmentAddressToIntegerError(), assignmentIntegerToAddressError(), Scope::classEnd, Scope::classStart, Scope::function, SymbolDatabase::functionScopes, Tokenizer::getSymbolDatabase(), Function::hasBody, isaddr(), Settings::isEnabled(), isint(), Token::Match(), Token::next(), Token::previous(), returnIntegerError(), returnPointerError(), Token::simpleMatch(), Token::strAt(), and Function::token.
Referenced by runChecks().
| void Check64BitPortability::returnIntegerError | ( | const Token * | tok | ) | [private] |
Definition at line 152 of file check64bit.cpp.
References Severity::portability, and Check::reportError().
Referenced by getErrorMessages(), and pointerassignment().
| void Check64BitPortability::returnPointerError | ( | const Token * | tok | ) | [private] |
Definition at line 141 of file check64bit.cpp.
References Severity::portability, and Check::reportError().
Referenced by getErrorMessages(), and pointerassignment().
| void Check64BitPortability::runChecks | ( | const Tokenizer * | tokenizer, |
| const Settings * | settings, | ||
| ErrorLogger * | errorLogger | ||
| ) | [inline, virtual] |
Run checks against the normal token list.
Reimplemented from Check.
Definition at line 48 of file check64bit.h.
References pointerassignment().
| void Check64BitPortability::runSimplifiedChecks | ( | const Tokenizer * | tokenizer, |
| const Settings * | settings, | ||
| ErrorLogger * | errorLogger | ||
| ) | [inline, virtual] |
Run checks against the simplified token list.
Implements Check.
Definition at line 54 of file check64bit.h.
1.7.6.1