fix #2746 (false positive: syntax error (typedef in __attribute__ )))
This commit is contained in:
parent
55898c0dfc
commit
670741271e
|
@ -9265,6 +9265,7 @@ void Tokenizer::simplifyAttribute()
|
||||||
|
|
||||||
Token::eraseTokens(tok, tok->next()->link()->next());
|
Token::eraseTokens(tok, tok->next()->link()->next());
|
||||||
tok->deleteThis();
|
tok->deleteThis();
|
||||||
|
tok = tok->previous();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4885,6 +4885,7 @@ private:
|
||||||
{
|
{
|
||||||
ASSERT_EQUALS("short array [ 3 ] ;", tokenizeAndStringify("short array[3] __attribute__ ((aligned));"));
|
ASSERT_EQUALS("short array [ 3 ] ;", tokenizeAndStringify("short array[3] __attribute__ ((aligned));"));
|
||||||
ASSERT_EQUALS("int x [ 2 ] ;", tokenizeAndStringify("int x[2] __attribute__ ((packed));"));
|
ASSERT_EQUALS("int x [ 2 ] ;", tokenizeAndStringify("int x[2] __attribute__ ((packed));"));
|
||||||
|
ASSERT_EQUALS("int vecint ;", tokenizeAndStringify("int __attribute__((mode(SI))) __attribute__((vector_size (16))) vecint;"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void cpp0xtemplate1()
|
void cpp0xtemplate1()
|
||||||
|
|
Loading…
Reference in New Issue