From 2ca47601cdebfa32f96e661996b293f6dcd3ecc6 Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Sun, 28 Sep 2014 22:05:05 +0200 Subject: [PATCH] Running astyle --- lib/tokenlist.cpp | 4 ++-- test/testgarbage.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index eaee301ec..6e3836d40 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -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, ",|)")) { diff --git a/test/testgarbage.cpp b/test/testgarbage.cpp index 06b4a0c0f..9e5da993d 100644 --- a/test/testgarbage.cpp +++ b/test/testgarbage.cpp @@ -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("( ) &"); }