astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-04-27 10:29:10 +02:00
parent d15b945c9e
commit 8304290f06
2 changed files with 4 additions and 4 deletions

View File

@ -8359,7 +8359,7 @@ void Tokenizer::findGarbageCode() const
if (!tok)
syntaxError(switchToken);
// Look for the end of the switch statement, i.e. the first semi-colon or '}'
for ( ; tok ; tok = tok->next()) {
for (; tok ; tok = tok->next()) {
if (tok->str() == "{") {
tok = tok->link();
}

View File

@ -556,13 +556,13 @@ private:
"}");
ASSERT_EQUALS("", errout.str());
// #8509 Uniform initialization ignored for iterator
check("void f() {\n"
// #8509 Uniform initialization ignored for iterator
check("void f() {\n"
" std::vector<int> ints;\n"
" std::vector<int>::const_iterator iter {ints.cbegin()};\n"
" std::cout << (*iter) << std::endl;\n"
"}");
ASSERT_EQUALS("", errout.str());
ASSERT_EQUALS("", errout.str());
}
void dereference_break() { // #3644