Removed redundant valuetype debug output
This commit is contained in:
parent
5a1bea2a09
commit
7591a57587
|
@ -4408,28 +4408,6 @@ void SymbolDatabase::setValueTypeInTokenList(Token *tokens, bool cpp, char defau
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SymbolDatabase::debugValueType() const
|
|
||||||
{
|
|
||||||
unsigned int linenr = 0U;
|
|
||||||
std::cout << std::endl << "### ValueType ###" << std::endl;
|
|
||||||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {
|
|
||||||
if (tok->linenr() != linenr)
|
|
||||||
std::cout << std::endl << tok->linenr() << ": ";
|
|
||||||
linenr = tok->linenr();
|
|
||||||
std::cout << tok->str();
|
|
||||||
if (tok->valueType()) {
|
|
||||||
std::string t = tok->valueType()->str();
|
|
||||||
std::string::size_type pos;
|
|
||||||
while ((pos = t.find(" ")) != std::string::npos)
|
|
||||||
t[pos] = '_';
|
|
||||||
std::cout << ':' << t;
|
|
||||||
}
|
|
||||||
std::cout << ' ';
|
|
||||||
}
|
|
||||||
std::cout << std::endl << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
std::string ValueType::str() const
|
std::string ValueType::str() const
|
||||||
{
|
{
|
||||||
std::string ret;
|
std::string ret;
|
||||||
|
|
|
@ -1061,8 +1061,6 @@ public:
|
||||||
/** Set valuetype in provided tokenlist */
|
/** Set valuetype in provided tokenlist */
|
||||||
static void setValueTypeInTokenList(Token *tokens, bool cpp, char defaultSignedness, const Library* lib);
|
static void setValueTypeInTokenList(Token *tokens, bool cpp, char defaultSignedness, const Library* lib);
|
||||||
|
|
||||||
void debugValueType() const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class Scope;
|
friend class Scope;
|
||||||
friend class Function;
|
friend class Function;
|
||||||
|
|
|
@ -3843,7 +3843,6 @@ void Tokenizer::printDebugOutput(unsigned int simplification) const
|
||||||
_symbolDatabase->printXml(std::cout);
|
_symbolDatabase->printXml(std::cout);
|
||||||
else if (_settings->verbose) {
|
else if (_settings->verbose) {
|
||||||
_symbolDatabase->printOut("Symbol database");
|
_symbolDatabase->printOut("Symbol database");
|
||||||
_symbolDatabase->debugValueType();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue