Running astyle, no functional changes.

This commit is contained in:
Martin Ettl 2015-05-29 20:20:05 +02:00
parent 5b347c537b
commit d5d6d7fbb8
3 changed files with 7 additions and 7 deletions

View File

@ -1721,7 +1721,7 @@ void CheckBufferOverrun::arrayIndexThenCheck()
if (tok->type() == Token::eComparisonOp) if (tok->type() == Token::eComparisonOp)
tok = tok->tokAt(2); tok = tok->tokAt(2);
if (!tok) if (!tok)
break; break;
// skip close parentheses // skip close parentheses
if (tok->str() == ")") if (tok->str() == ")")

View File

@ -98,8 +98,8 @@ void CheckString::checkAlwaysTrueOrFalseStringCompare()
alwaysTrueFalseStringCompareError(tok, str1, str2); alwaysTrueFalseStringCompareError(tok, str1, str2);
tok = tok->tokAt(5); tok = tok->tokAt(5);
} }
if (!tok) if (!tok)
break; break;
} }
} }

View File

@ -90,8 +90,8 @@ private:
TEST_CASE(garbageCode49); // #6715 TEST_CASE(garbageCode49); // #6715
TEST_CASE(garbageCode50); // #6718 TEST_CASE(garbageCode50); // #6718
TEST_CASE(garbageCode51); // #6719 TEST_CASE(garbageCode51); // #6719
TEST_CASE(garbageCode52); // #6720 TEST_CASE(garbageCode52); // #6720
TEST_CASE(garbageCode53); // #6721 TEST_CASE(garbageCode53); // #6721
TEST_CASE(garbageValueFlow); TEST_CASE(garbageValueFlow);
TEST_CASE(garbageSymbolDatabase); TEST_CASE(garbageSymbolDatabase);
@ -517,11 +517,11 @@ private:
checkCode(" (const \"C\" ...); struct base { int f2; base (int arg1, int arg2); }; global_base(0x55, 0xff); { ((global_base.f1 0x55) (global_base.f2 0xff)) { } } base::base(int arg1, int arg2) { f2 = }"); checkCode(" (const \"C\" ...); struct base { int f2; base (int arg1, int arg2); }; global_base(0x55, 0xff); { ((global_base.f1 0x55) (global_base.f2 0xff)) { } } base::base(int arg1, int arg2) { f2 = }");
} }
void garbageCode52() { // #6720 void garbageCode52() { // #6720
checkCode("a \"b\" not_eq \"c\""); checkCode("a \"b\" not_eq \"c\"");
} }
void garbageCode53() { // #6721 void garbageCode53() { // #6721
checkCode("{ { } }; void foo (struct int i) { x->b[i] = = }"); checkCode("{ { } }; void foo (struct int i) { x->b[i] = = }");
} }