Incomplete statement: fixed and enabled intarray test case.
This commit is contained in:
parent
d1af0b6478
commit
4c93b4928b
|
@ -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");
|
||||
|
|
|
@ -64,7 +64,7 @@ private:
|
|||
TEST_CASE(test4);
|
||||
TEST_CASE(test5);
|
||||
TEST_CASE(test_numeric);
|
||||
// TODO TEST_CASE(intarray);
|
||||
TEST_CASE(intarray);
|
||||
}
|
||||
|
||||
void test1()
|
||||
|
|
Loading…
Reference in New Issue