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

John McCall rjmccall at apple.com
Thu Jul 14 10:05:30 PDT 2011


On Jul 14, 2011, at 1:28 AM, Nicola Gigante wrote:
>>  - the field's TypeLoc is a (possibly parenthesized) ConstantArrayTypeLoc and
> ok, do you mean that getTypeLocClass() == ConstantArray?

isa<ConstantArrayTypeLoc>, please, but that's the idea.

>>  - the size expression in that TypeLoc is a (possibly parenthesized) IntegerLiteral and
> where do I get the size expression from the typeloc?

Look at the methods on ArrayTypeLoc.

John.



More information about the cfe-dev mailing list