@@ -52,13 +52,13 @@ class CPPCHECKLIB Check64BitPortability : public Check {
5252 }
5353
5454 /* * @brief Run checks against the normal token list */
55- void runChecks (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) {
55+ void runChecks (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) override {
5656 Check64BitPortability check64BitPortability (tokenizer, settings, errorLogger);
5757 check64BitPortability.pointerassignment ();
5858 }
5959
6060 /* * @brief Run checks against the simplified token list */
61- void runSimplifiedChecks (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) {
61+ void runSimplifiedChecks (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) override {
6262 (void )tokenizer;
6363 (void )settings;
6464 (void )errorLogger;
@@ -74,7 +74,7 @@ class CPPCHECKLIB Check64BitPortability : public Check {
7474 void returnIntegerError (const Token *tok);
7575 void returnPointerError (const Token *tok);
7676
77- void getErrorMessages (ErrorLogger *errorLogger, const Settings *settings) const {
77+ void getErrorMessages (ErrorLogger *errorLogger, const Settings *settings) const override {
7878 Check64BitPortability c (nullptr , settings, errorLogger);
7979 c.assignmentAddressToIntegerError (nullptr );
8080 c.assignmentIntegerToAddressError (nullptr );
@@ -86,7 +86,7 @@ class CPPCHECKLIB Check64BitPortability : public Check {
8686 return " 64-bit portability" ;
8787 }
8888
89- std::string classInfo () const {
89+ std::string classInfo () const override {
9090 return " Check if there is 64-bit portability issues:\n "
9191 " - assign address to/from int/long\n "
9292 " - casting address from/to integer when returning from function\n " ;
0 commit comments