astyle formatting

This commit is contained in:
Daniel Marjamäki 2013-09-28 09:32:41 +02:00
parent e5843b32c4
commit c2a8f6f59a
2 changed files with 3 additions and 3 deletions

View File

@ -101,9 +101,9 @@ static bool checkRvalueExpression(const Token * const vartok)
static bool variableIsUsedInScope(const Token* start, unsigned int varId, const Scope *scope)
{
if(!start) // Ticket #5024
if (!start) // Ticket #5024
return false;
for (const Token *tok = start; tok != scope->classEnd; tok = tok->next()) {
if (tok->varId() == varId)
return true;

View File

@ -326,7 +326,7 @@ private:
"}");
ASSERT_EQUALS("[test.cpp:6]: (error) Address of local auto-variable assigned to a function parameter.\n", errout.str());
}
void testautovar12() { // Ticket #5024 - Crash on invalid input
check("void f(int* a) { a = }");
}