[cfe-commits] r65510 - /cfe/trunk/lib/CodeGen/CGCall.cpp

Ted Kremenek kremenek at apple.com
Thu Feb 26 10:14:53 PST 2009


Incidentally, there is already a predicate function like this for the  
static analyzer.  It is a static function in the class "Loc" (SVal.h)  
called "IsLocType()".  It would be great to have a common predicate  
function for multiple clients.

On Feb 26, 2009, at 8:56 AM, Chris Lattner wrote:

>
> On Feb 26, 2009, at 1:34 AM, Eli Friedman wrote:
>
>> On Wed, Feb 25, 2009 at 11:21 PM, Daniel Dunbar <daniel at zuster.org>
>> wrote:
>>>  } else if (Ty->isPointerLikeType() || Ty->isBlockPointerType() ||
>>> +             Ty->isObjCQualifiedIdType() ||
>>>             Ty->isObjCQualifiedInterfaceType()) {
>>
>> It's getting to the point where we use the pattern isPointer ||
>> isBlockPointer || isObjCQualId || isObjCQualInterface in a lot of
>> places, and are using incomplete versions of it in a lot of others.
>> Maybe a new predicate would be appropriate?
>
> Maybe block pointers and objc qualified id's and qualified interfaces
> should inherit from PointerLikeType?  Then we could use
> isPointerLikeType?
>
> -Chris
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list