remove duplicate ";" and fours dots

This commit is contained in:
XhmikosR 2013-04-09 14:57:42 +03:00 committed by PKEuS
parent 2d6d1f3250
commit 8ac9b8e7a9
4 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ namespace {
// - http://www.cplusplus.com/reference/cstdio/fgetc/ // - http://www.cplusplus.com/reference/cstdio/fgetc/
// - http://www.cplusplus.com/reference/cstdio/getc/ // - http://www.cplusplus.com/reference/cstdio/getc/
// - http://www.cplusplus.com/reference/cstdio/getchar/ // - http://www.cplusplus.com/reference/cstdio/getchar/
// - http://www.cplusplus.com/reference/cstdio/ungetc/ .... // - http://www.cplusplus.com/reference/cstdio/ungetc/ ...
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
void CheckOther::checkCastIntToCharAndBack() void CheckOther::checkCastIntToCharAndBack()
{ {

View File

@ -800,9 +800,9 @@ void Tokenizer::simplifyTypedef()
typeOf = true; typeOf = true;
} }
// function: typedef ... ( .... type )( ... ); // function: typedef ... ( ... type )( ... );
// typedef ... (( .... type )( ... )); // typedef ... (( ... type )( ... ));
// typedef ... ( * ( .... type )( ... )); // typedef ... ( * ( ... type )( ... ));
else if ((tokOffset->str() == "(" && else if ((tokOffset->str() == "(" &&
Token::Match(tokOffset->link()->previous(), "%type% ) (") && Token::Match(tokOffset->link()->previous(), "%type% ) (") &&
Token::Match(tokOffset->link()->next()->link(), ") const|volatile|;")) || Token::Match(tokOffset->link()->next()->link(), ") const|volatile|;")) ||

View File

@ -1619,7 +1619,7 @@ private:
std::map<std::string, std::string> actual; std::map<std::string, std::string> actual;
Settings settings; Settings settings;
settings.debug = settings.debugwarnings = true; settings.debug = settings.debugwarnings = true;
settings.addEnabled("missingInclude");; settings.addEnabled("missingInclude");
Preprocessor preprocessor(&settings, this); Preprocessor preprocessor(&settings, this);
preprocessor.preprocess(istr, actual, "file.c"); preprocessor.preprocess(istr, actual, "file.c");

View File

@ -7585,7 +7585,7 @@ private:
"UINT_PTR uint_ptr;" "UINT_PTR uint_ptr;"
"WPARAM wparam;" "WPARAM wparam;"
"HALF_PTR half_ptr;" "HALF_PTR half_ptr;"
"INT_PTR int_ptr;";; "INT_PTR int_ptr;";
const char expected[] = "unsigned int sizeof_short ; sizeof_short = 2 ; " const char expected[] = "unsigned int sizeof_short ; sizeof_short = 2 ; "
"unsigned int sizeof_unsigned_short ; sizeof_unsigned_short = 2 ; " "unsigned int sizeof_unsigned_short ; sizeof_unsigned_short = 2 ; "