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