]> granicus.if.org Git - clang/commit
Provide Type::castAs<>, which is to getAs<> what cast<> is to dyn_cast<>.
authorJohn McCall <rjmccall@apple.com>
Thu, 27 Jan 2011 08:17:49 +0000 (08:17 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 27 Jan 2011 08:17:49 +0000 (08:17 +0000)
commitd0370f59e79702ac908c81bf556519f91e9ca297
tree3125cbd70936ba0f1334494b52d706c4e76c2e1f
parentdfbb02a16ac8c764b5ba1742450513d6212d2f9f
Provide Type::castAs<>, which is to getAs<> what cast<> is to dyn_cast<>.
Also provide a method to grab the base element type of a type without
stressing out over qualifiers (but give it a nice scary name).

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