astyle formatting

This commit is contained in:
Daniel Marjamäki 2013-12-23 12:26:12 +01:00
parent e747b6c49b
commit 596b4bd405
2 changed files with 2 additions and 2 deletions

View File

@ -2609,7 +2609,7 @@ bool Tokenizer::simplifyLabelsCaseDefault()
tok = tok->link();
} else if (tok->str() == "?") {
Token *tok1 = skipTernaryOp(tok);
if(!tok1) {
if (!tok1) {
syntaxError(tok);
return false;
}

View File

@ -982,7 +982,7 @@ private:
void garbageCode5() { // #5168
tokenizeAndStringify("( asm : ; void : );");
}
void garbageCode6() { // #5214
tokenizeAndStringify("int b = ( 0 ? ? ) 1 : 0 ;", /*simplify=*/true);
tokenizeAndStringify("int a = int b = ( 0 ? ? ) 1 : 0 ;", /*simplify=*/true);