Symbol database: Fixed --debug printing. Ticket: #4650

This commit is contained in:
Robert Reif 2013-03-13 06:31:13 +01:00 committed by Daniel Marjamäki
parent e91e7148de
commit ee942c5592
1 changed files with 7 additions and 2 deletions

View File

@ -1756,8 +1756,13 @@ void SymbolDatabase::printOut(const char *title) const
std::cout << " )" << std::endl; std::cout << " )" << std::endl;
} }
for (std::size_t i = 0; i < typeList.size(); i++) { for (std::size_t i = 1; i < _variableList.size(); i++) {
std::cout << "_variableList[" << i << "] = " << _variableList[i] << std::endl; std::cout << "_variableList[" << i << "]: " << _variableList[i];
if (_variableList[i]) {
std::cout << " " << _variableList[i]->name() << " "
<< _tokenizer->list.fileLine(_variableList[i]->nameToken());
}
std::cout << std::endl;
} }
} }