SymbolDatabase: Use range for loop
This commit is contained in:
parent
a5a294cf13
commit
625da9af5c
|
@ -3141,16 +3141,15 @@ void SymbolDatabase::printOut(const char *title) const
|
|||
std::cout << "int";
|
||||
std::cout << std::endl;
|
||||
std::cout << " enumClass: " << scope->enumClass << std::endl;
|
||||
for (std::vector<Enumerator>::const_iterator enumerator = scope->enumeratorList.begin(); enumerator != scope->enumeratorList.end(); ++enumerator) {
|
||||
std::cout << " Enumerator: " << enumerator->name->str() << " = ";
|
||||
if (enumerator->value_known) {
|
||||
std::cout << enumerator->value;
|
||||
}
|
||||
for (const Enumerator &enumerator : scope->enumeratorList) {
|
||||
std::cout << " Enumerator: " << enumerator.name->str() << " = ";
|
||||
if (enumerator.value_known)
|
||||
std::cout << enumerator.value;
|
||||
|
||||
if (enumerator->start) {
|
||||
const Token * tok = enumerator->start;
|
||||
std::cout << (enumerator->value_known ? " " : "") << "[" << tok->str();
|
||||
while (tok && tok != enumerator->end) {
|
||||
if (enumerator.start) {
|
||||
const Token * tok = enumerator.start;
|
||||
std::cout << (enumerator.value_known ? " " : "") << "[" << tok->str();
|
||||
while (tok && tok != enumerator.end) {
|
||||
if (tok->next())
|
||||
std::cout << " " << tok->next()->str();
|
||||
tok = tok->next();
|
||||
|
|
Loading…
Reference in New Issue