Declared recently added helper functions as static

This commit is contained in:
PKEuS 2015-01-09 21:40:50 +01:00
parent 25cd3794ac
commit 4da314b2e4
1 changed files with 4 additions and 4 deletions

View File

@ -1994,24 +1994,24 @@ static std::ostream & operator << (std::ostream & s, Scope::ScopeType type)
return s; return s;
} }
std::string tokenToString(const Token* tok, const Tokenizer* _tokenizer) static std::string tokenToString(const Token* tok, const Tokenizer* tokenizer)
{ {
std::ostringstream oss; std::ostringstream oss;
if (tok) { if (tok) {
oss << tok->str() << " "; oss << tok->str() << " ";
oss << _tokenizer->list.fileLine(tok) << " "; oss << tokenizer->list.fileLine(tok) << " ";
} }
oss << tok; oss << tok;
return oss.str(); return oss.str();
} }
std::string scopeToString(const Scope* scope, const Tokenizer* _tokenizer) static std::string scopeToString(const Scope* scope, const Tokenizer* tokenizer)
{ {
std::ostringstream oss; std::ostringstream oss;
if (scope) { if (scope) {
oss << scope->type << " "; oss << scope->type << " ";
if (scope->classDef) if (scope->classDef)
oss << _tokenizer->list.fileLine(scope->classDef) << " "; oss << tokenizer->list.fileLine(scope->classDef) << " ";
} }
oss << scope; oss << scope;
return oss.str(); return oss.str();