File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2419,7 +2419,7 @@ void SymbolDatabase::printOut(const char *title) const
24192419 std::cout << " int" ;
24202420 std::cout << std::endl;
24212421 std::cout << " enumClass: " << scope->enumClass << std::endl;
2422- for (std::vector<Enumerator>::const_iterator enumerator = scope->enumeratorList .begin (); enumerator != scope->enumeratorList .end (); ++enumerator) {
2422+ for (std::vector<Enumerator>::const_iterator enumerator = scope->enumeratorList .begin (); enumerator != scope->enumeratorList .end (); ++enumerator) {
24232423 std::cout << " Enumerator: " << enumerator->name ->str () << " = " ;
24242424 if (enumerator->value_known ) {
24252425 std::cout << enumerator->value ;
@@ -3358,7 +3358,7 @@ const Enumerator * SymbolDatabase::findEnumerator(const Token * tok) const
33583358 if (enumerator)
33593359 return enumerator;
33603360
3361- for (std::list<Scope *>::const_iterator s = scope->nestedList .begin (); s != scope->nestedList .end (); ++s) {
3361+ for (std::list<Scope *>::const_iterator s = scope->nestedList .begin (); s != scope->nestedList .end (); ++s) {
33623362 enumerator = (*s)->findEnumerator (tok->str ());
33633363
33643364 if (enumerator)
Original file line number Diff line number Diff line change @@ -2357,16 +2357,16 @@ class TestSimplifyTypedef : public TestFixture {
23572357
23582358 void simplifyTypedef118 () { // #5749
23592359 const char code[] = " struct ClassyClass {\n "
2360- " int id;\n "
2361- " typedef int (ClassyClass::*funky_type);\n "
2362- " operator funky_type() {\n "
2363- " return &ClassyClass::id;\n "
2364- " }}" ;
2360+ " int id;\n "
2361+ " typedef int (ClassyClass::*funky_type);\n "
2362+ " operator funky_type() {\n "
2363+ " return &ClassyClass::id;\n "
2364+ " }}" ;
23652365 const char expected[] = " struct ClassyClass { "
2366- " int id ; "
2367- " operatorintClassyClass::* ( ) { "
2368- " return & ClassyClass :: id ; "
2369- " } }" ;
2366+ " int id ; "
2367+ " operatorintClassyClass::* ( ) { "
2368+ " return & ClassyClass :: id ; "
2369+ " } }" ;
23702370 ASSERT_EQUALS (expected, tok (code, false ));
23712371 ASSERT_EQUALS (" " , errout.str ());
23722372 }
You can’t perform that action at this time.
0 commit comments