Running astyle

This commit is contained in:
Martin Ettl 2014-09-28 22:05:05 +02:00
parent b677d3d17f
commit 2ca47601cd
2 changed files with 5 additions and 5 deletions

View File

@ -758,8 +758,8 @@ static void compileAnd(Token *&tok, AST_state& state)
while (tok) {
if (tok->str() == "&" && !tok->astOperand1()) {
Token* tok2 = tok->next();
if(!tok2)
break;
if (!tok2)
break;
if (tok2->str() == "&")
tok2 = tok2->next();
if (state.cpp && Token::Match(tok2, ",|)")) {

View File

@ -50,8 +50,8 @@ private:
TEST_CASE(garbageCode8); // #5511
TEST_CASE(garbageCode9); // #5604
TEST_CASE(garbageCode10); // #6127
TEST_CASE(garbageCode11);
TEST_CASE(garbageCode11);
TEST_CASE(astGarbage);
}
@ -233,7 +233,7 @@ private:
void garbageCode10() { // #6127
checkCode("for( rl=reslist; rl!=NULL; rl=rl->next )");
}
void garbageCode11() { // do not crash
checkCode("( ) &");
}