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 {
struct Space {
Space() : classEnd(nullptr), isNamespace(false) { } Space() : classEnd(nullptr), isNamespace(false) { }
std::string className; std::string className;
const Token * classEnd; const Token * classEnd;
bool isNamespace; bool isNamespace;
}; };
}
static Token *splitDefinitionFromTypedef(Token *tok) static Token *splitDefinitionFromTypedef(Token *tok)
{ {