Declared recently added helper functions as static
This commit is contained in:
parent
25cd3794ac
commit
4da314b2e4
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue