[cfe-commits] r133405 - in /cfe/trunk: include/clang/AST/Type.h lib/AST/Type.cpp lib/Sema/SemaExpr.cpp

John McCall rjmccall at apple.com
Sun Jun 19 21:54:04 PDT 2011

On Jun 19, 2011, at 6:23 PM, Chandler Carruth wrote:
> Author: chandlerc
> Date: Sun Jun 19 20:23:19 2011
> New Revision: 133405
> URL: http://llvm.org/viewvc/llvm-project?rev=133405&view=rev
> Log:
> Restructure the API in Type based on a conversation with Richard Smith.
> This makes 'isPointerLikeType' a little less confusing, and pulls the
> decay check into a separate interface that is much more clear and
> concrete. Also, just implement these as logical wrappers around other
> predicates. Having a switch based implementation isn't likely to be
> necessary. We can try to optimize them later if they show up on
> a profile.

Neither block pointers nor member pointers permit pointer
arithmetic, so this predicate seems completely pointless.


More information about the cfe-commits mailing list