From a54ec615f3e01f54c3dfa3af8cc1dc1e4b246cc7 Mon Sep 17 00:00:00 2001 From: amai2012 Date: Mon, 25 Apr 2016 11:12:35 +0200 Subject: [PATCH] Run astyle --- lib/symboldatabase.cpp | 4 ++-- test/testsimplifytypedef.cpp | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index e72142dfb..0091d57b6 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -2419,7 +2419,7 @@ void SymbolDatabase::printOut(const char *title) const std::cout << "int"; std::cout << std::endl; std::cout << " enumClass: " << scope->enumClass << std::endl; - for (std::vector::const_iterator enumerator = scope->enumeratorList.begin(); enumerator != scope->enumeratorList.end(); ++enumerator) { + for (std::vector::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; @@ -3358,7 +3358,7 @@ const Enumerator * SymbolDatabase::findEnumerator(const Token * tok) const if (enumerator) return enumerator; - for (std::list::const_iterator s = scope->nestedList.begin(); s != scope->nestedList.end(); ++s) { + for (std::list::const_iterator s = scope->nestedList.begin(); s != scope->nestedList.end(); ++s) { enumerator = (*s)->findEnumerator(tok->str()); if (enumerator) diff --git a/test/testsimplifytypedef.cpp b/test/testsimplifytypedef.cpp index ddfb6661f..e4524e542 100644 --- a/test/testsimplifytypedef.cpp +++ b/test/testsimplifytypedef.cpp @@ -2357,16 +2357,16 @@ private: void simplifyTypedef118() { // #5749 const char code[] = "struct ClassyClass {\n" - "int id;\n" - "typedef int (ClassyClass::*funky_type);\n" - "operator funky_type() {\n" - "return &ClassyClass::id;\n" - "}}"; + "int id;\n" + "typedef int (ClassyClass::*funky_type);\n" + "operator funky_type() {\n" + "return &ClassyClass::id;\n" + "}}"; const char expected[] = "struct ClassyClass { " - "int id ; " - "operatorintClassyClass::* ( ) { " - "return & ClassyClass :: id ; " - "} }"; + "int id ; " + "operatorintClassyClass::* ( ) { " + "return & ClassyClass :: id ; " + "} }"; ASSERT_EQUALS(expected, tok(code, false)); ASSERT_EQUALS("", errout.str()); }