[cfe-dev] -Warray-bounds seems over-zealous on Clang

Nicola Gigante nicola.gigante at gmail.com
Thu Jul 14 01:28:48 PDT 2011


Il giorno 13/lug/2011, alle ore 22.21, John McCall ha scritto:

> 
> The exception should apply to:
>   - a field of a struct, where
ok
>   - the field's TypeLoc is a (possibly parenthesized) ConstantArrayTypeLoc and
ok, do you mean that getTypeLocClass() == ConstantArray?
>   - the size expression in that TypeLoc is a (possibly parenthesized) IntegerLiteral and
where do I get the size expression from the typeloc?
>   - the source location of that literal is not a macro ID.
> 

> John.

Nicola



More information about the cfe-dev mailing list