]> granicus.if.org Git - clang/commit
Restructure the API in Type based on a conversation with Richard Smith.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 20 Jun 2011 01:23:19 +0000 (01:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 20 Jun 2011 01:23:19 +0000 (01:23 +0000)
commitbc8d7f9fd4346cfcc285868be32b74e019a40f01
tree84a36df59f9b9cf232b57ebbe842dd42db30088f
parent085d09d14365cef1faa7a376730911227ee39ee3
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133405 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
lib/AST/Type.cpp
lib/Sema/SemaExpr.cpp