Incomplete statement: fixed and enabled intarray test case.

This commit is contained in:
Leandro Penz 2009-02-11 15:17:13 +00:00
parent d1af0b6478
commit 4c93b4928b
2 changed files with 7 additions and 1 deletions

View File

@ -762,6 +762,12 @@ void CheckOther::CheckIncompleteStatement()
if (parlevel != 0)
continue;
if (tok->previous() && Token::Match(tok->previous(), "="))
{
/* We are inside an assignment, so it's not a statement. */
continue;
}
if (Token::Match(tok, "[;{}] %str%") && !Token::Match(tok->tokAt(2), "[,}]"))
{
_errorLogger->constStatement(_tokenizer, tok->next(), "string");

View File

@ -64,7 +64,7 @@ private:
TEST_CASE(test4);
TEST_CASE(test5);
TEST_CASE(test_numeric);
// TODO TEST_CASE(intarray);
TEST_CASE(intarray);
}
void test1()