astyle formatting
This commit is contained in:
parent
862eb351d5
commit
36ef34a2cf
|
@ -370,7 +370,7 @@ void CheckLeakAutoVar::checkScope(const Token * const startToken,
|
||||||
else if (tok->str() == "goto") {
|
else if (tok->str() == "goto") {
|
||||||
varInfo->clear();
|
varInfo->clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// continue/break
|
// continue/break
|
||||||
else if (Token::Match(tok, "continue|break ;")) {
|
else if (Token::Match(tok, "continue|break ;")) {
|
||||||
varInfo->clear();
|
varInfo->clear();
|
||||||
|
|
|
@ -328,7 +328,7 @@ private:
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void doublefree3() { // #4914
|
void doublefree3() { // #4914
|
||||||
check("void foo() {\n"
|
check("void foo() {\n"
|
||||||
" bool done = false;\n"
|
" bool done = false;\n"
|
||||||
|
@ -343,7 +343,7 @@ private:
|
||||||
" } while(!done);\n"
|
" } while(!done);\n"
|
||||||
" return;"
|
" return;"
|
||||||
"}"
|
"}"
|
||||||
);
|
);
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue