Add more kind of code to process for 'removeExceptionSpecifications' (unions, anonymous unions and structs).

This commit is contained in:
Edoardo Prezioso 2011-12-08 02:50:05 +01:00
parent 4de5d87078
commit 149ff355e2
1 changed files with 2 additions and 2 deletions

View File

@ -8740,7 +8740,7 @@ void Tokenizer::removeExceptionSpecifications(Token *tok) const
tok->deleteNext();
}
else if (Token::Match(tok, "class|namespace|struct %type% :|{")) {
else if (Token::Match(tok, "class|namespace|struct|union %type% :|{")) {
tok = tok->tokAt(2);
while (tok && !Token::Match(tok, "[;{=]"))
tok = tok->next();
@ -8751,7 +8751,7 @@ void Tokenizer::removeExceptionSpecifications(Token *tok) const
continue;
}
else if (Token::simpleMatch(tok, "namespace {")) {
else if (Token::Match(tok, "namespace|struct|union {")) {
tok = tok->next();
removeExceptionSpecifications(tok->next());
tok = tok->link();