astyle run

This commit is contained in:
Ettl Martin 2012-10-08 21:50:21 +02:00
parent 0879bb5825
commit 2cf75d5339
2 changed files with 3 additions and 3 deletions

View File

@ -5134,8 +5134,8 @@ void Tokenizer::simplifyVarDecl(bool only_k_r_fpar)
const Token *VarTok = type0->tokAt((int)typelen);
while (Token::Match(VarTok, "*|&|const"))
VarTok = VarTok->next();
if (!VarTok)
break; // ticket 4245 - invalid code probably
if (!VarTok)
break; // ticket 4245 - invalid code probably
list.insertTokens(eq, VarTok, 2);
eq->str(";");

View File

@ -652,7 +652,7 @@ private:
void tokenize25() {
tokenizeAndStringify("f ( struct { int typedef T x ; } ) { }");
}
// #4245 - segfault
void tokenize26() {
tokenizeAndStringify("class x { protected : template < int y = } ;");