Token::expressionString(): Fixed output of library types
This commit is contained in:
parent
e58344c2c9
commit
b41350e8d8
|
@ -1209,7 +1209,7 @@ static std::string stringFromTokenRange(const Token* start, const Token* end)
|
||||||
ret << "unsigned ";
|
ret << "unsigned ";
|
||||||
if (tok->isLong())
|
if (tok->isLong())
|
||||||
ret << (tok->isLiteral() ? "L" : "long ");
|
ret << (tok->isLiteral() ? "L" : "long ");
|
||||||
if (tok->originalName().empty()) {
|
if (tok->originalName().empty() || tok->isUnsigned() || tok->isLong()) {
|
||||||
ret << tok->str();
|
ret << tok->str();
|
||||||
} else
|
} else
|
||||||
ret << tok->originalName();
|
ret << tok->originalName();
|
||||||
|
|
Loading…
Reference in New Issue