astyle run
This commit is contained in:
parent
0879bb5825
commit
2cf75d5339
|
@ -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(";");
|
||||
|
||||
|
|
|
@ -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 = } ;");
|
||||
|
|
Loading…
Reference in New Issue