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);
|
const Token *VarTok = type0->tokAt((int)typelen);
|
||||||
while (Token::Match(VarTok, "*|&|const"))
|
while (Token::Match(VarTok, "*|&|const"))
|
||||||
VarTok = VarTok->next();
|
VarTok = VarTok->next();
|
||||||
if (!VarTok)
|
if (!VarTok)
|
||||||
break; // ticket 4245 - invalid code probably
|
break; // ticket 4245 - invalid code probably
|
||||||
list.insertTokens(eq, VarTok, 2);
|
list.insertTokens(eq, VarTok, 2);
|
||||||
eq->str(";");
|
eq->str(";");
|
||||||
|
|
||||||
|
|
|
@ -652,7 +652,7 @@ private:
|
||||||
void tokenize25() {
|
void tokenize25() {
|
||||||
tokenizeAndStringify("f ( struct { int typedef T x ; } ) { }");
|
tokenizeAndStringify("f ( struct { int typedef T x ; } ) { }");
|
||||||
}
|
}
|
||||||
|
|
||||||
// #4245 - segfault
|
// #4245 - segfault
|
||||||
void tokenize26() {
|
void tokenize26() {
|
||||||
tokenizeAndStringify("class x { protected : template < int y = } ;");
|
tokenizeAndStringify("class x { protected : template < int y = } ;");
|
||||||
|
|
Loading…
Reference in New Issue