Running astyle
This commit is contained in:
parent
b677d3d17f
commit
2ca47601cd
|
@ -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, ",|)")) {
|
||||
|
|
|
@ -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("( ) &");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue