Run astyle
This commit is contained in:
parent
479f00030e
commit
a54ec615f3
|
@ -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<Enumerator>::const_iterator enumerator = scope->enumeratorList.begin(); enumerator != scope->enumeratorList.end(); ++enumerator) {
|
||||
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;
|
||||
|
@ -3358,7 +3358,7 @@ const Enumerator * SymbolDatabase::findEnumerator(const Token * tok) const
|
|||
if (enumerator)
|
||||
return enumerator;
|
||||
|
||||
for (std::list<Scope *>::const_iterator s = scope->nestedList.begin(); s != scope->nestedList.end(); ++s) {
|
||||
for (std::list<Scope *>::const_iterator s = scope->nestedList.begin(); s != scope->nestedList.end(); ++s) {
|
||||
enumerator = (*s)->findEnumerator(tok->str());
|
||||
|
||||
if (enumerator)
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue