[cfe-commits] r86660 - /cfe/trunk/lib/Analysis/CheckSizeofPointer.cpp

Ted Kremenek kremenek at apple.com
Wed Nov 11 12:18:36 PST 2009


Thanks John!

On Nov 11, 2009, at 12:11 PM, John McCall wrote:

> Ted Kremenek wrote:
>>
>> On Nov 9, 2009, at 8:25 PM, Zhongxing Xu wrote:
>>
>>> 2009/11/10 Ted Kremenek <kremenek at apple.com>:
>>>> I think we should now have the size of the type expression as well,
>>>
>>> I'm curious about how can I do this?
>>
>> Good question.
>>
>> John: Is it now possible to get the source range of the type  
>> referenced in a sizeof() expression?
>
> Usually.  There are a few cases where Sema's still not passing type  
> location information correctly through the parser, so the location  
> information isn't always meaningful.  But common cases should be  
> fine, and all the others are bugs. :)
>
> getArgumentTypeInfo().getTypeLoc().getFullSourceRange()
>
> John.




More information about the cfe-commits mailing list