44 friend class Test64BitPortability;
53 :
Check(myName(), tokenizer, settings, errorLogger) {}
62 void pointerassignment();
64 void assignmentAddressToIntegerError(
const Token *tok);
65 void assignmentIntegerToAddressError(
const Token *tok);
66 void returnIntegerError(
const Token *tok);
67 void returnPointerError(
const Token *tok);
78 return "64-bit portability";
82 return "Check if there is 64-bit portability issues:\n"
83 "- assign address to/from int/long\n"
84 "- casting address from/to integer when returning from function\n";
Check for 64-bit portability issues.
void assignmentAddressToIntegerError(const Token *tok)
void runChecks(const Tokenizer &tokenizer, ErrorLogger *errorLogger) override
Run checks against the normal token list.
void returnIntegerError(const Token *tok)
Check64BitPortability()
This constructor is used when registering the Check64BitPortability.
void assignmentIntegerToAddressError(const Token *tok)
std::string classInfo() const override
get information about this class, used to generate documentation
void returnPointerError(const Token *tok)
Check64BitPortability(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
This constructor is used when running checks.
void pointerassignment()
Check for pointer assignment.
static std::string myName()
void getErrorMessages(ErrorLogger *errorLogger, const Settings *settings) const override
get error messages
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...
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