astyle formatting
This commit is contained in:
parent
e5843b32c4
commit
c2a8f6f59a
|
@ -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;
|
||||
|
|
|
@ -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 = }");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue