diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 2ba05824e..ffbc2ee9f 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -42,7 +42,7 @@ namespace { // - http://www.cplusplus.com/reference/cstdio/fgetc/ // - http://www.cplusplus.com/reference/cstdio/getc/ // - http://www.cplusplus.com/reference/cstdio/getchar/ -// - http://www.cplusplus.com/reference/cstdio/ungetc/ .... +// - http://www.cplusplus.com/reference/cstdio/ungetc/ ... //---------------------------------------------------------------------------------- void CheckOther::checkCastIntToCharAndBack() { diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index beb40f137..bb51629c1 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -800,9 +800,9 @@ void Tokenizer::simplifyTypedef() typeOf = true; } - // function: typedef ... ( .... type )( ... ); - // typedef ... (( .... type )( ... )); - // typedef ... ( * ( .... type )( ... )); + // function: typedef ... ( ... type )( ... ); + // typedef ... (( ... type )( ... )); + // typedef ... ( * ( ... type )( ... )); else if ((tokOffset->str() == "(" && Token::Match(tokOffset->link()->previous(), "%type% ) (") && Token::Match(tokOffset->link()->next()->link(), ") const|volatile|;")) || diff --git a/test/testpreprocessor.cpp b/test/testpreprocessor.cpp index 75afa16a2..9342bf337 100644 --- a/test/testpreprocessor.cpp +++ b/test/testpreprocessor.cpp @@ -1619,7 +1619,7 @@ private: std::map actual; Settings settings; settings.debug = settings.debugwarnings = true; - settings.addEnabled("missingInclude");; + settings.addEnabled("missingInclude"); Preprocessor preprocessor(&settings, this); preprocessor.preprocess(istr, actual, "file.c"); diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index 484e84b25..37fb656c3 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -7585,7 +7585,7 @@ private: "UINT_PTR uint_ptr;" "WPARAM wparam;" "HALF_PTR half_ptr;" - "INT_PTR int_ptr;";; + "INT_PTR int_ptr;"; const char expected[] = "unsigned int sizeof_short ; sizeof_short = 2 ; " "unsigned int sizeof_unsigned_short ; sizeof_unsigned_short = 2 ; "