Tokenizer: Put struct in anonymous namespace

This commit is contained in:
Daniel Marjamäki 2017-07-29 19:46:18 +02:00
parent 2aa1523a2d
commit f76ff9e7bf
1 changed files with 8 additions and 6 deletions

View File

@ -423,12 +423,14 @@ Token * Tokenizer::deleteInvalidTypedef(Token *typeDef)
return tok; return tok;
} }
struct Space { namespace {
Space() : classEnd(nullptr), isNamespace(false) { } struct Space {
std::string className; Space() : classEnd(nullptr), isNamespace(false) { }
const Token * classEnd; std::string className;
bool isNamespace; const Token * classEnd;
}; bool isNamespace;
};
}
static Token *splitDefinitionFromTypedef(Token *tok) static Token *splitDefinitionFromTypedef(Token *tok)
{ {