reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

gen/tools/clang/include/clang/AST/TypeNodes.inc
   58 TYPE(Pointer, Type)
tools/clang/lib/CodeGen/CodeGenTypes.h
   41 class PointerType;

References

include/llvm/ADT/FoldingSet.h
  221   static void Profile(const T &X, FoldingSetNodeID &ID) {
  224   static void Profile(T &X, FoldingSetNodeID &ID) {
  232   static inline bool Equals(T &X, const FoldingSetNodeID &ID, unsigned IDHash,
  240   static inline unsigned ComputeHash(T &X, FoldingSetNodeID &TempID);
  250   : public DefaultFoldingSetTrait<T> {};
  369   FoldingSetTrait<T>::Profile(X, TempID);
  375   FoldingSetTrait<T>::Profile(X, TempID);
  410   using iterator = FoldingSetIterator<T>;
  415   using const_iterator = FoldingSetIterator<const T>;
  420   using bucket_iterator = FoldingSetBucketIterator<T>;
  432   bool RemoveNode(T *N) { return FoldingSetBase::RemoveNode(N); }
  437   T *GetOrInsertNode(T *N) {
  437   T *GetOrInsertNode(T *N) {
  444   T *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos) {
  451   void InsertNode(T *N, void *InsertPos) {
  457   void InsertNode(T *N) {
  473 template <class T> class FoldingSet final : public FoldingSetImpl<T> {
  474   using Super = FoldingSetImpl<T>;
  480     T *TN = static_cast<T *>(N);
  481     FoldingSetTrait<T>::Profile(*TN, ID);
  488     T *TN = static_cast<T *>(N);
  489     return FoldingSetTrait<T>::Equals(*TN, ID, IDHash, TempID);
  495     T *TN = static_cast<T *>(N);
  496     return FoldingSetTrait<T>::ComputeHash(*TN, TempID);
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  252       X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  309   return cast<X>(Val);
  331                             typename cast_retty<X, const Y>::ret_type>::type
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/ASTContext.h
  182   mutable llvm::FoldingSet<PointerType> PointerTypes;
tools/clang/include/clang/AST/ASTNodeTraverser.h
  278   void VisitPointerType(const PointerType *T) { Visit(T->getPointeeType()); }
tools/clang/include/clang/AST/ASTTypeTraits.h
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
  251   const T *get() const {
  252     return BaseConverter<T>::get(NodeKind, Storage.buffer);
  259   const T &getUnchecked() const {
  260     return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
  394     static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
  395       if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
  399     static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
  401       return *cast<T>(static_cast<const BaseT *>(
  479     : public DynCastPtrConverter<T, Type> {};
tools/clang/include/clang/AST/CanonicalType.h
   76   CanQual(const CanQual<U> &Other,
   77           typename std::enable_if<std::is_base_of<T, U>::value, int>::type = 0);
   77           typename std::enable_if<std::is_base_of<T, U>::value, int>::type = 0);
   83   const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
   83   const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
   87   const T *getTypePtrOrNull() const {
   88     return cast_or_null<T>(Stored.getTypePtrOrNull());
  120   template<typename U> CanProxy<U> getAs() const;
  122   template<typename U> CanProxy<U> castAs() const;
  126   CanProxy<T> operator->() const;
  157   CanQual<T> getUnqualifiedType() const;
  167   bool isMoreQualifiedThan(CanQual<T> Other) const {
  173   bool isAtLeastAsQualifiedAs(CanQual<T> Other) const {
  185   static CanQual<T> getFromOpaquePtr(void *Ptr);
  192   static CanQual<T> CreateUnsafe(QualType Other);
  241   CanQual<T> Stored;
  245   const T *getTypePtr() const { return Stored.getTypePtr(); }
  254   operator const T*() const { return this->Stored.getTypePtrOrNull(); }
  258   template<typename U> CanProxy<U> getAs() const {
  259     return this->Stored.template getAs<U>();
  321   const CanProxyAdaptor<T> *operator->() const {
  347 class CanProxy : public CanProxyAdaptor<T> {
  353   CanProxy(CanQual<T> Stored) { this->Stored = Stored; }
  356   operator CanQual<T>() const { return this->Stored; }
  422 struct CanProxyAdaptor<PointerType> : public CanProxyBase<PointerType> {
  644   CanQual<T> Result;
  658   if (isa<U>(Stored.getTypePtr()))
  659     return CanQual<U>::CreateUnsafe(Stored);
  667   static_assert(!TypeIsArrayType<U>::value,
  671   return CanQual<U>::CreateUnsafe(Stored);
tools/clang/include/clang/AST/ExprCXX.h
 2194     return getType()->castAs<PointerType>()->getPointeeType();
tools/clang/include/clang/AST/RecursiveASTVisitor.h
  942 DEF_TRAVERSE_TYPE(PointerType, { TRY_TO(TraverseType(T->getPointeeType())); })
 1154                      { TRY_TO(TraverseTypeLoc(TL.getPointeeLoc())); })
tools/clang/include/clang/AST/Type.h
 2237   template <typename T> const T *getAs() const;
 2608   bool isAddressSpaceOverlapping(const PointerType &other) const {
 6292   if (const auto *PT = t.getAs<PointerType>()) {
 6292   if (const auto *PT = t.getAs<PointerType>()) {
 6392   return isa<PointerType>(CanonicalType);
 6416   if (const auto *T = getAs<PointerType>())
 6416   if (const auto *T = getAs<PointerType>())
 6537   if (const auto *OPT = getAs<PointerType>())
 6537   if (const auto *OPT = getAs<PointerType>())
 6747   return isa<PointerType>(CanonicalType) ||
 6859   static_assert(!TypeIsArrayType<T>::value,
 6863   if (const auto *Ty = dyn_cast<T>(this))
 6863   if (const auto *Ty = dyn_cast<T>(this))
 6867   if (!isa<T>(CanonicalType))
 6872   return cast<T>(getUnqualifiedDesugaredType());
 6923 template <typename T> const T *Type::castAs() const {
 6924   static_assert(!TypeIsArrayType<T>::value,
 6927   if (const auto *ty = dyn_cast<T>(this)) return ty;
 6927   if (const auto *ty = dyn_cast<T>(this)) return ty;
 6929   return cast<T>(getUnqualifiedDesugaredType());
 6951   return cast<PointerType>(Decayed)->getPointeeType();
tools/clang/include/clang/AST/TypeLoc.h
  370     return TypeClass::classof(Ty);
  405   const TypeClass *getTypePtr() const {
  406     return cast<TypeClass>(Base::getTypePtr());
 1209                                                   TypeClass, LocalData> {
 1238                                                  PointerType> {
tools/clang/include/clang/ASTMatchers/ASTMatchFinder.h
  266 const NodeT *
  269     if (const NodeT *Node = N.getNodeAs<NodeT>(BoundTo))
  269     if (const NodeT *Node = N.getNodeAs<NodeT>(BoundTo))
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  110   const T *getNodeAs(StringRef ID) const {
  111     return MyBoundNodes.getNodeAs<T>(ID);
 5672 extern const AstTypeMatcher<PointerType> pointerType;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  160   const T *getNodeAs(StringRef ID) const {
  165     return It->second.get<T>();
  302   virtual bool matches(const T &Node,
  309     return matches(DynNode.getUnchecked<T>(), Finder, Builder);
  345   DynTypedMatcher(MatcherInterface<T> *Implementation)
  346       : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
  436     return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  445   template <typename T> Matcher<T> convertTo() const {
  447     return unconditionalConvertTo<T>();
  479 class WrapperMatcherInterface : public MatcherInterface<T> {
  499   explicit Matcher(MatcherInterface<T> *Implementation)
  520             std::is_same<T, QualType>::value &&
  529     static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
  534   bool matches(const T &Node,
  581     return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
 1067   using head = T1;
 1073   using tail = TypeList<Ts...>;
 1243   operator Matcher<T>() const {
 1245                ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
 1246         .template unconditionalConvertTo<T>();
 1255 class BindableMatcher : public Matcher<T> {
 1257   explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
 1258   explicit BindableMatcher(MatcherInterface<T> *Implementation)
 1265   Matcher<T> bind(StringRef ID) const {
 1335   template <typename T> operator Matcher<T>() const {
 1337                Op, ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1338                getMatchers<T>(std::index_sequence_for<Ps...>()))
 1339         .template unconditionalConvertTo<T>();
 1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
 1376 BindableMatcher<T> makeAllOfComposite(
 1377     ArrayRef<const Matcher<T> *> InnerMatchers) {
 1388   using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
 1395           ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1397           .template unconditionalConvertTo<T>());
 1408     ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
 1557     : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
 1558                               makeDynCastAllOfComposite<SourceT, TargetT>> {
 1625 class TypeTraverseMatcher : public WrapperMatcherInterface<T> {
 1632   bool matches(const T &Node, ASTMatchFinder *Finder,
 1693   template <typename OuterT> operator Matcher<OuterT>() const {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
  199   ast_matchers::internal::Matcher<T> getTypedMatcher() const {
  202         ->template convertTo<T>();
  227       : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
  228   typedef ast_matchers::internal::Matcher<T> MatcherT;
  232     return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
  976   CXXThisRegion(const PointerType *thisPointerTy,
  985                             const PointerType *PT,
 1002   const PointerType *ThisPointerTy;
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 1071   const PointerType* PT = T->getAs<PointerType>();
 1071   const PointerType* PT = T->getAs<PointerType>();
 1374   const PointerType* PT = Ty->getAs<PointerType>();
 1374   const PointerType* PT = Ty->getAs<PointerType>();
tools/clang/lib/ARCMigrate/Transforms.cpp
   51   while (const PointerType *ptr = T->getAs<PointerType>())
   51   while (const PointerType *ptr = T->getAs<PointerType>())
  368     else if (const PointerType *PT = T->getAs<PointerType>())
  368     else if (const PointerType *PT = T->getAs<PointerType>())
tools/clang/lib/AST/ASTContext.cpp
 2070     AS = getTargetAddressSpace(cast<PointerType>(T)->getPointeeType());
 2790   if (const auto *ptr = T->getAs<PointerType>()) {
 2790   if (const auto *ptr = T->getAs<PointerType>()) {
 2948   PointerType::Profile(ID, T);
 2951   if (PointerType *PT = PointerTypes.FindNodeOrInsertPos(ID, InsertPos))
 2961     PointerType *NewIP = PointerTypes.FindNodeOrInsertPos(ID, InsertPos);
 2964   auto *New = new (*this, TypeAlignment) PointerType(T, Canonical);
 2964   auto *New = new (*this, TypeAlignment) PointerType(T, Canonical);
 3282                               cast<PointerType>(ty)->getPointeeType()));
 5269   const auto *T1PtrType = T1->getAs<PointerType>();
 5269   const auto *T1PtrType = T1->getAs<PointerType>();
 5270   const auto *T2PtrType = T2->getAs<PointerType>();
 5270   const auto *T2PtrType = T2->getAs<PointerType>();
 5895     else if (const auto *PT = T->getAs<PointerType>())
 5895     else if (const auto *PT = T->getAs<PointerType>())
 6837     if (isa<PointerType>(CT)) {
 6838       const auto *PT = T->castAs<PointerType>();
 6838       const auto *PT = T->castAs<PointerType>();
 6860       while (auto PT = P->getAs<PointerType>())
 7916       return getObjCGCAttrKind(Ty->castAs<PointerType>()->getPointeeType());
 8972     QualType LHSPointee = LHS->castAs<PointerType>()->getPointeeType();
 8973     QualType RHSPointee = RHS->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/ASTDiagnostic.cpp
  182   if (const PointerType *Ty = QT->getAs<PointerType>()) {
  182   if (const PointerType *Ty = QT->getAs<PointerType>()) {
tools/clang/lib/AST/ASTImporter.cpp
  313     ExpectedType VisitPointerType(const PointerType *T);
 1047 ExpectedType ASTNodeImporter::VisitPointerType(const PointerType *T) {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  492                                   cast<PointerType>(T1)->getPointeeType(),
  493                                   cast<PointerType>(T2)->getPointeeType()))
tools/clang/lib/AST/CommentSema.cpp
  878   if (const auto *P = QT->getAs<PointerType>())
  878   if (const auto *P = QT->getAs<PointerType>())
tools/clang/lib/AST/Decl.cpp
 1877       QT = cast<PointerType>(T)->getPointeeType();
tools/clang/lib/AST/DeclBase.cpp
  962     Ty = Ty->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/DeclPrinter.cpp
  147     if (const PointerType *PTy = BaseType->getAs<PointerType>())
  147     if (const PointerType *PTy = BaseType->getAs<PointerType>())
tools/clang/lib/AST/Expr.cpp
   65   if (const PointerType *PTy = DerivedType->getAs<PointerType>())
   65   if (const PointerType *PTy = DerivedType->getAs<PointerType>())
 1499   if (const auto *FnTypePtr = CalleeType->getAs<PointerType>()) {
 1499   if (const auto *FnTypePtr = CalleeType->getAs<PointerType>()) {
 2128   const PointerType *PTy = PExp->getType()->getAs<PointerType>();
 2128   const PointerType *PTy = PExp->getType()->getAs<PointerType>();
 3706       if (const PointerType *PT = CE->getType()->getAs<PointerType>()) {
 3706       if (const PointerType *PT = CE->getType()->getAs<PointerType>()) {
 4643   auto T = getPtr()->getType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/ExprCXX.cpp
  324   return ArgType->castAs<PointerType>()->getPointeeType();
  836   if (const auto *SrcPTy = SrcType->getAs<PointerType>()) {
  836   if (const auto *SrcPTy = SrcType->getAs<PointerType>()) {
  838     DestType = DestType->castAs<PointerType>()->getPointeeType();
 1586       BaseType = BaseType->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/ExprConstant.cpp
 3880     if (const PointerType *PT = SubobjType->getAs<PointerType>())
 3880     if (const PointerType *PT = SubobjType->getAs<PointerType>())
 4033     if (const PointerType *PT = SubobjType->getAs<PointerType>())
 4033     if (const PointerType *PT = SubobjType->getAs<PointerType>())
 4143     if (const PointerType *PT = LVType->getAs<PointerType>())
 4143     if (const PointerType *PT = LVType->getAs<PointerType>())
 4204   if (const PointerType *PT = TargetQT->getAs<PointerType>())
 4204   if (const PointerType *PT = TargetQT->getAs<PointerType>())
 7213       BaseTy = E->getBase()->getType()->castAs<PointerType>()->getPointeeType();
 7788   QualType Pointee = E->getType()->castAs<PointerType>()->getPointeeType();
 7926   QualType Pointee = PExp->getType()->castAs<PointerType>()->getPointeeType();
 7982                                   castAs<PointerType>()->getPointeeType(),
 8121   QualType PointeeTy = E->getType()->castAs<PointerType>()->getPointeeType();
10270       BaseType = BaseType->castAs<PointerType>()->getPointeeType();
10935           castAs<PointerType>()->getPointeeType();
11857     QualType ElementType = Type->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/FormatString.cpp
  327     const PointerType *PT = argTy->getAs<PointerType>();
  327     const PointerType *PT = argTy->getAs<PointerType>();
  416       const PointerType *PT = argTy->getAs<PointerType>();
  416       const PointerType *PT = argTy->getAs<PointerType>();
  436       const PointerType *PT = argTy->getAs<PointerType>();
  436       const PointerType *PT = argTy->getAs<PointerType>();
  480       if (const PointerType *PT = argTy->getAs<PointerType>()) {
  480       if (const PointerType *PT = argTy->getAs<PointerType>()) {
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp
  499   if (auto *PT = dyn_cast<PointerType>(Ty))
tools/clang/lib/AST/Interp/Program.cpp
  126   QualType ElemTy = PD->getType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/ItaniumMangle.cpp
 3015 void CXXNameMangler::mangleType(const PointerType *T) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 2599 void MicrosoftCXXNameMangler::mangleType(const PointerType *T, Qualifiers Quals,
tools/clang/lib/AST/ODRHash.cpp
  764     if (auto Pointer = dyn_cast<PointerType>(split.Ty)) {
  965   void VisitPointerType(const PointerType *T) {
tools/clang/lib/AST/QualTypeNames.cpp
  372   if (isa<PointerType>(QT.getTypePtr())) {
tools/clang/lib/AST/Type.cpp
  522   if (const auto *PT = getAs<PointerType>())
  522   if (const auto *PT = getAs<PointerType>())
  558   if (const auto *PT = getAs<PointerType>())
  558   if (const auto *PT = getAs<PointerType>())
  837   QualType VisitPointerType(const PointerType *T) {
 1675   if (const auto *PT = getAs<PointerType>())
 1675   if (const auto *PT = getAs<PointerType>())
 1744     Type *VisitPointerType(const PointerType *T) {
 2061   } else if (isa<PointerType>(T)) {
 3669     return Cache::get(cast<PointerType>(T)->getPointeeType());
 3753     return computeTypeLinkageInfo(cast<PointerType>(T)->getPointeeType());
 4062   if (const auto *OPT = getAs<PointerType>())
 4062   if (const auto *OPT = getAs<PointerType>())
 4088   const auto *Pointer = getAs<PointerType>();
 4088   const auto *Pointer = getAs<PointerType>();
 4099   if (const auto *ptr = getAs<PointerType>())
 4099   if (const auto *ptr = getAs<PointerType>())
tools/clang/lib/AST/TypePrinter.cpp
  370 void TypePrinter::printPointerBefore(const PointerType *T, raw_ostream &OS) {
  381 void TypePrinter::printPointerAfter(const PointerType *T, raw_ostream &OS) {
tools/clang/lib/AST/VTableBuilder.cpp
  296   } else if (isa<PointerType>(CanDerivedReturnType)) {
  298       CanDerivedReturnType->getAs<PointerType>()->getPointeeType();
  300       CanBaseReturnType->getAs<PointerType>()->getPointeeType();
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  822 const AstTypeMatcher<PointerType> pointerType;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
   75     return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
   78   static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
   79     return Value.getMatcher().getTypedMatcher<T>();
   83     return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  466       ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
  469         DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
  778     ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/Analysis/BodyFarm.cpp
  485   const PointerType *PredicatePtrTy = PredicateQPtrTy->getAs<PointerType>();
  485   const PointerType *PredicatePtrTy = PredicateQPtrTy->getAs<PointerType>();
  618   const PointerType *PT = TheValueTy->getAs<PointerType>();
  618   const PointerType *PT = TheValueTy->getAs<PointerType>();
tools/clang/lib/Analysis/CocoaConventions.cpp
   41   const PointerType* PT = RetTy->castAs<PointerType>();
   41   const PointerType* PT = RetTy->castAs<PointerType>();
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGAtomic.cpp
  973       auto AS = PT->castAs<PointerType>()->getPointeeType().getAddressSpace();
tools/clang/lib/CodeGen/CGBuiltin.cpp
 2897         PtrTy->castAs<PointerType>()->getPointeeType().isVolatileQualified();
 2980         PtrTy->castAs<PointerType>()->getPointeeType().isVolatileQualified();
 3219         ResultArg->getType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/CodeGen/CGCall.cpp
 3220       CRE->getSubExpr()->getType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  877 llvm::DIType *CGDebugInfo::CreateType(const PointerType *Ty,
 1491     const PointerType *ThisPtrTy = cast<PointerType>(ThisPtr);
 1491     const PointerType *ThisPtrTy = cast<PointerType>(ThisPtr);
 3029     return CreateType(cast<PointerType>(Ty), Unit);
tools/clang/lib/CodeGen/CGDebugInfo.h
  161   llvm::DIType *CreateType(const PointerType *Ty, llvm::DIFile *F);
tools/clang/lib/CodeGen/CGExpr.cpp
 1054       if (auto PtrTy = CE->getSubExpr()->getType()->getAs<PointerType>()) {
 1086           if (auto PT = E->getType()->getAs<PointerType>())
 2199       ExpTy = ExpTy->castAs<PointerType>()->getPointeeType();
 2235         ExpTy = ExpTy->castAs<PointerType>()->getPointeeType();
 2316   return CGF.EmitLoadOfPointer(Addr, PtrTy->castAs<PointerType>());
 2343                                            const PointerType *PtrTy,
 2353                                                 const PointerType *PtrTy) {
 3811     const PointerType *PT = E->getBase()->getType()->getAs<PointerType>();
 3811     const PointerType *PT = E->getBase()->getType()->getAs<PointerType>();
 4588   if (auto ptrType = E->getType()->getAs<PointerType>()) {
 4785   auto PointeeType = cast<PointerType>(CalleeType)->getPointeeType();
tools/clang/lib/CodeGen/CGExprCXX.cpp
  132       const PointerType *PTy = BaseExpr->getType()->getAs<PointerType>();
  132       const PointerType *PTy = BaseExpr->getType()->getAs<PointerType>();
  171   if (const PointerType *PTy = T->getAs<PointerType>())
  171   if (const PointerType *PTy = T->getAs<PointerType>())
 2192   const PointerType *DestPTy = DestTy->getAs<PointerType>();
 2192   const PointerType *DestPTy = DestTy->getAs<PointerType>();
 2199     SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType();
tools/clang/lib/CodeGen/CGExprConstant.cpp
 2295   if (T->getAs<PointerType>())
tools/clang/lib/CodeGen/CGExprScalar.cpp
 2004       if (auto PT = DestTy->getAs<PointerType>())
 2436   } else if (const PointerType *ptr = type->getAs<PointerType>()) {
 2436   } else if (const PointerType *ptr = type->getAs<PointerType>()) {
 3219   const PointerType *pointerType
 3220     = pointerOperand->getType()->getAs<PointerType>();
tools/clang/lib/CodeGen/CGObjCMac.cpp
 2281     if (const PointerType *PT = FQT->getAs<PointerType>())
 2281     if (const PointerType *PT = FQT->getAs<PointerType>())
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  148             PartIDVar->getType()->castAs<PointerType>());
  165             PartIDVar->getType()->castAs<PointerType>());
 1109     if (const auto *PtrTy = BaseTy->getAs<PointerType>()) {
 1109     if (const auto *PtrTy = BaseTy->getAs<PointerType>()) {
 1207       getThreadIDVariable()->getType()->castAs<PointerType>());
 1382     return CGF.EmitLoadOfPointerLValue(AddrIn, PtrTy->castAs<PointerType>())
 1387     return CGF.EmitLoadOfPointerLValue(AddrOut, PtrTy->castAs<PointerType>())
 1497                                     TaskTVar->getType()->castAs<PointerType>())
 4532       KmpTaskTWithPrivatesPtrQTy->castAs<PointerType>());
 4630       KmpTaskTWithPrivatesPtrQTy->castAs<PointerType>());
 4729       TaskPrivatesArg.getType()->castAs<PointerType>());
 4738         RefLVal.getAddress(), RefLVal.getType()->castAs<PointerType>());
 4912       KmpTaskTWithPrivatesPtrQTy->castAs<PointerType>());
 4930         KmpTaskTWithPrivatesPtrQTy->castAs<PointerType>());
 6020       C.getPointerType(C.VoidPtrTy).castAs<PointerType>());
 6043         CGM.getContext().VoidPtrTy.castAs<PointerType>()->getTypePtr());
 6114         C.getPointerType(C.VoidPtrTy).castAs<PointerType>());
 6122         C.getPointerType(C.VoidPtrTy).castAs<PointerType>());
 6167       C.getPointerType(C.VoidPtrTy).castAs<PointerType>());
 7193       if (const auto *PTy = BaseTy->getAs<PointerType>()) {
 7193       if (const auto *PTy = BaseTy->getAs<PointerType>()) {
 7536         BP = CGF.EmitLoadOfPointer(BP, Ty->castAs<PointerType>());
 8477       const auto *PtrTy = cast<PointerType>(RI.getType().getTypePtr());
 8477       const auto *PtrTy = cast<PointerType>(RI.getType().getTypePtr());
 8928         .EmitLoadOfPointerLValue(PtrCurrent, PtrTy->castAs<PointerType>())
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 2263               .castAs<PointerType>());
 2565                           .castAs<PointerType>());
 2998           C.getPointerType(Private->getType())->castAs<PointerType>());
 3014           C.getPointerType(Private->getType())->castAs<PointerType>());
 3021           C.getPointerType(Private->getType())->castAs<PointerType>());
 3029           C.getPointerType(Private->getType())->castAs<PointerType>());
 4606                         .castAs<PointerType>());
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  526             ArgAddr, ArgLVal.getType()->castAs<PointerType>());
tools/clang/lib/CodeGen/CGVTables.cpp
   63            (isa<PointerType>(typeL) && isa<PointerType>(typeR)) ||
   63            (isa<PointerType>(typeL) && isa<PointerType>(typeR)) ||
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  620     auto *PT = MD->parameters()[1]->getType()->getAs<PointerType>();
 1901       type = cast<PointerType>(ty)->getPointeeType();
tools/clang/lib/CodeGen/CodeGenFunction.h
 2168   Address EmitLoadOfPointer(Address Ptr, const PointerType *PtrTy,
 2171   LValue EmitLoadOfPointerLValue(Address Ptr, const PointerType *PtrTy);
tools/clang/lib/CodeGen/CodeGenTypes.cpp
  558     const PointerType *PTy = cast<PointerType>(Ty);
  558     const PointerType *PTy = cast<PointerType>(Ty);
  798   if (T->getAs<PointerType>())
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 3007 static bool TypeInfoIsInStandardLibrary(const PointerType *PointerTy) {
 3032   if (const PointerType *PointerTy = dyn_cast<PointerType>(Ty))
 3032   if (const PointerType *PointerTy = dyn_cast<PointerType>(Ty))
 3102   if (const PointerType *PointerTy = dyn_cast<PointerType>(Ty))
 3102   if (const PointerType *PointerTy = dyn_cast<PointerType>(Ty))
 3480     BuildPointerTypeInfo(cast<PointerType>(Ty)->getPointeeType());
 4111     if (const PointerType *PT = dyn_cast<PointerType>(CaughtType)) {
 4111     if (const PointerType *PT = dyn_cast<PointerType>(CaughtType)) {
tools/clang/lib/CodeGen/TargetInfo.cpp
 9195   if (const PointerType *PT = QT->getAs<PointerType>())
 9195   if (const PointerType *PT = QT->getAs<PointerType>())
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
 1142   if (const PointerType *PT = OrigTy->getAs<PointerType>()) {
 1142   if (const PointerType *PT = OrigTy->getAs<PointerType>()) {
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  552       if (const PointerType *PT = OCT->getAs<PointerType>()) {
  552       if (const PointerType *PT = OCT->getAs<PointerType>()) {
  622   const PointerType *PT = funcType->getAs<PointerType>();
  622   const PointerType *PT = funcType->getAs<PointerType>();
 1214     if (const PointerType* PT = retType->getAs<PointerType>())
 1214     if (const PointerType* PT = retType->getAs<PointerType>())
 2144   if (const PointerType *PT = T->getAs<PointerType>()) {
 2144   if (const PointerType *PT = T->getAs<PointerType>()) {
 2930     if (const PointerType* PT = T->getAs<PointerType>()) {
 2930     if (const PointerType* PT = T->getAs<PointerType>()) {
 4509     if (const PointerType* PT = T->getAs<PointerType>()) {
 4509     if (const PointerType* PT = T->getAs<PointerType>()) {
 4802   const PointerType *PT = QT->getAs<PointerType>();
 4802   const PointerType *PT = QT->getAs<PointerType>();
 4820   const PointerType *PT = QT->getAs<PointerType>();
 4820   const PointerType *PT = QT->getAs<PointerType>();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  459       if (const PointerType *PT = OCT->getAs<PointerType>()) {
  459       if (const PointerType *PT = OCT->getAs<PointerType>()) {
  558   const PointerType *PT = funcType->getAs<PointerType>();
  558   const PointerType *PT = funcType->getAs<PointerType>();
 1046     if (const PointerType* PT = retType->getAs<PointerType>())
 1046     if (const PointerType* PT = retType->getAs<PointerType>())
 2060   if (const PointerType *PT = T->getAs<PointerType>()) {
 2060   if (const PointerType *PT = T->getAs<PointerType>()) {
 3956   const PointerType *PT = QT->getAs<PointerType>();
 3956   const PointerType *PT = QT->getAs<PointerType>();
 3974   const PointerType *PT = QT->getAs<PointerType>();
 3974   const PointerType *PT = QT->getAs<PointerType>();
tools/clang/lib/Index/USRGeneration.cpp
  780     if (const PointerType *PT = T->getAs<PointerType>()) {
  780     if (const PointerType *PT = T->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaAccess.cpp
 1554     BaseType = BaseType->castAs<PointerType>()->getPointeeType();
tools/clang/lib/Sema/SemaCast.cpp
  459   if (auto Ptr = From->getAs<PointerType>()) {
  464   if (auto Ptr = To->getAs<PointerType>()) {
  725   const PointerType *DestPointer = DestType->getAs<PointerType>();
  725   const PointerType *DestPointer = DestType->getAs<PointerType>();
  762     if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) {
  762     if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) {
 1083   auto *SrcPtrType = SrcType->getAs<PointerType>();
 1086   auto *DestPtrType = DestType->getAs<PointerType>();
 1212   if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) {
 1212   if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) {
 1215       if (const PointerType *DestPointer = DestType->getAs<PointerType>()) {
 1215       if (const PointerType *DestPointer = DestType->getAs<PointerType>()) {
 1276   if (auto SrcPointer = SrcType->getAs<PointerType>())
 1277     if (auto DestPointer = DestType->getAs<PointerType>())
 1396   const PointerType *DestPointer = DestType->getAs<PointerType>();
 1396   const PointerType *DestPointer = DestType->getAs<PointerType>();
 1401   const PointerType *SrcPointer = SrcType->getAs<PointerType>();
 1401   const PointerType *SrcPointer = SrcType->getAs<PointerType>();
 1818     if (!SrcType->getAs<PointerType>() || !DestType->getAs<PointerType>()) {
 1818     if (!SrcType->getAs<PointerType>() || !DestType->getAs<PointerType>()) {
 1861   if (const PointerType *SrcPtrTy = SrcType->getAs<PointerType>())
 1861   if (const PointerType *SrcPtrTy = SrcType->getAs<PointerType>())
 1864       if (isa<PointerType>(DestType))
 1884       SrcType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>();
 1886       DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>();
 2332   auto SrcPtrType = SrcType->getAs<PointerType>();
 2335   auto DestPtrType = DestType->getAs<PointerType>();
 2375     while (isa<PointerType>(DestPtr) && isa<PointerType>(SrcPtr)) {
 2375     while (isa<PointerType>(DestPtr) && isa<PointerType>(SrcPtr)) {
 2376       const PointerType *DestPPtr = cast<PointerType>(DestPtr);
 2376       const PointerType *DestPPtr = cast<PointerType>(DestPtr);
 2377       const PointerType *SrcPPtr = cast<PointerType>(SrcPtr);
 2377       const PointerType *SrcPPtr = cast<PointerType>(SrcPtr);
 2765     const PointerType *CastPtr = DestType->getAs<PointerType>();
 2765     const PointerType *CastPtr = DestType->getAs<PointerType>();
 2767       if (const PointerType *ExprPtr = SrcType->getAs<PointerType>()) {
 2767       if (const PointerType *ExprPtr = SrcType->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaChecking.cpp
  231     const auto *PtrTy = Ty->getAs<PointerType>();
  231     const auto *PtrTy = Ty->getAs<PointerType>();
  809   const PointerType *ArgTy = ArgIdx->getType()->getAs<PointerType>();
  809   const PointerType *ArgTy = ArgIdx->getType()->getAs<PointerType>();
 1760   const PointerType *pointerType = PointerArg->getType()->getAs<PointerType>();
 1760   const PointerType *pointerType = PointerArg->getType()->getAs<PointerType>();
 4265         if (auto pointerType = type->getAs<PointerType>())
 4693   const PointerType *pointerType = Ptr->getType()->getAs<PointerType>();
 4693   const PointerType *pointerType = Ptr->getType()->getAs<PointerType>();
 4882           if (const PointerType *PtrTy =
 4883                   ValArg->getType()->getAs<PointerType>()) {
 5049   const PointerType *pointerType = FirstArg->getType()->getAs<PointerType>();
 5049   const PointerType *pointerType = FirstArg->getType()->getAs<PointerType>();
 5420   const PointerType *pointerType = PointerArg->getType()->getAs<PointerType>();
 5420   const PointerType *pointerType = PointerArg->getType()->getAs<PointerType>();
 6895       } else if (const PointerType *PT = T->getAs<PointerType>()) {
 6895       } else if (const PointerType *PT = T->getAs<PointerType>()) {
 9611   if (BId == Builtin::BIbzero && !FirstArgTy->getAs<PointerType>())
 9620     if (const PointerType *DestPtrTy = DestTy->getAs<PointerType>()) {
 9620     if (const PointerType *DestPtrTy = DestTy->getAs<PointerType>()) {
13014   if (const auto *PointerTy = dyn_cast<PointerType>(PType)) {
13014   if (const auto *PointerTy = dyn_cast<PointerType>(PType)) {
13145   const PointerType *DestPtr = T->getAs<PointerType>();
13145   const PointerType *DestPtr = T->getAs<PointerType>();
13155   const PointerType *SrcPtr = Op->getType()->getAs<PointerType>();
13155   const PointerType *SrcPtr = Op->getType()->getAs<PointerType>();
tools/clang/lib/Sema/SemaCodeComplete.cpp
  912     if (const auto *Pointer = T->getAs<PointerType>()) {
  912     if (const auto *Pointer = T->getAs<PointerType>()) {
 4711     if (const auto *Ptr = ConvertedBaseType->getAs<PointerType>())
 4711     if (const auto *Ptr = ConvertedBaseType->getAs<PointerType>())
 4746       if (const PointerType *Ptr = BaseType->getAs<PointerType>()) {
 4746       if (const PointerType *Ptr = BaseType->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaCoroutine.cpp
   86       QualType T = MD->getThisType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/Sema/SemaDecl.cpp
 2227           QualType PT = T->castAs<PointerType>()->getPointeeType();
 5747   if (const PointerType* PTy = dyn_cast<PointerType>(Ty)) {
 5747   if (const PointerType* PTy = dyn_cast<PointerType>(Ty)) {
10704       const PointerType* PT;
10705       if ((PT = qs.strip(AT)->getAs<PointerType>()) &&
10706           (PT = qs.strip(PT->getPointeeType())->getAs<PointerType>()) &&
tools/clang/lib/Sema/SemaDeclAttr.cpp
  167   const auto *PT = T->getAs<PointerType>();
  167   const auto *PT = T->getAs<PointerType>();
  530   if (const auto *PT = QT->getAs<PointerType>())
  530   if (const auto *PT = QT->getAs<PointerType>())
 3115        !Ty->castAs<PointerType>()->getPointeeType()->isCharType())) {
 3125        !Ty->castAs<PointerType>()->getPointeeType()->isCharType())) {
 3301              !Ty->castAs<PointerType>()->getPointeeType()->isCharType()) {
 4590   if (const auto *PtrType = Ty->getAs<PointerType>()) {
 4590   if (const auto *PtrType = Ty->getAs<PointerType>()) {
 4602   if (const auto *PtrType = Ty->getAs<PointerType>()) {
 4602   if (const auto *PtrType = Ty->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 1505   } else if (const PointerType *P = NewType->getAs<PointerType>()) {
 1505   } else if (const PointerType *P = NewType->getAs<PointerType>()) {
 1507     OldType = OldType->getAs<PointerType>()->getPointeeType();
13697 RemoveAddressSpaceFromPtr(Sema &SemaRef, const PointerType *PtrTy) {
13720     if (auto *PtrTy = ResultType->getAs<PointerType>()) {
13753             FnDecl->getParamDecl(0)->getType()->getAs<PointerType>()) {
14070     } else if (const PointerType *Ptr = ParamType->getAs<PointerType>()) {
14070     } else if (const PointerType *Ptr = ParamType->getAs<PointerType>()) {
14109     const PointerType *PT = FirstParamType->getAs<PointerType>();
14109     const PointerType *PT = FirstParamType->getAs<PointerType>();
14289   if (const PointerType *Ptr = BaseType->getAs<PointerType>()) {
14289   if (const PointerType *Ptr = BaseType->getAs<PointerType>()) {
15368   if (const PointerType *NewPT = NewTy->getAs<PointerType>()) {
15368   if (const PointerType *NewPT = NewTy->getAs<PointerType>()) {
15369     if (const PointerType *OldPT = OldTy->getAs<PointerType>()) {
15369     if (const PointerType *OldPT = OldTy->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaDeclObjC.cpp
  346   if (const PointerType *PT = T->getAs<PointerType>()) {
  346   if (const PointerType *PT = T->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaExceptionSpec.cpp
   28   if (const PointerType *PtrTy = T->getAs<PointerType>())
   28   if (const PointerType *PtrTy = T->getAs<PointerType>())
  121   if (const PointerType *PT = T->getAs<PointerType>()) {
  121   if (const PointerType *PT = T->getAs<PointerType>()) {
  173   if (const PointerType *PT = T->getAs<PointerType>())
  173   if (const PointerType *PT = T->getAs<PointerType>())
 1017   } else if (const PointerType *PT = T->getAs<PointerType>())
 1017   } else if (const PointerType *PT = T->getAs<PointerType>())
tools/clang/lib/Sema/SemaExpr.cpp
  362     if (const PointerType *ptr = type->getAs<PointerType>()) {
  362     if (const PointerType *ptr = type->getAs<PointerType>()) {
 2679     auto FromPtrType = FromType->getAs<PointerType>();
 2700     if (FromType->getAs<PointerType>()) {
 4078       T = cast<PointerType>(Ty)->getPointeeType();
 4449   if (!(isa<ArrayType>(BaseTy) || isa<PointerType>(BaseTy)))
 4458   if (const auto *Ptr = dyn_cast<PointerType>(Base->getType())) {
 4458   if (const auto *Ptr = dyn_cast<PointerType>(Base->getType())) {
 4654   } else if (const PointerType *PTy = LHSTy->getAs<PointerType>()) {
 4654   } else if (const PointerType *PTy = LHSTy->getAs<PointerType>()) {
 4670   } else if (const PointerType *PTy = RHSTy->getAs<PointerType>()) {
 4670   } else if (const PointerType *PTy = RHSTy->getAs<PointerType>()) {
 4721     ResultType = LHSTy->getAs<PointerType>()->getPointeeType();
 4732     ResultType = RHSTy->getAs<PointerType>()->getPointeeType();
 5839     if (const PointerType *PT = Fn->getType()->getAs<PointerType>()) {
 5839     if (const PointerType *PT = Fn->getType()->getAs<PointerType>()) {
 6940     lhptee = LHSTy->castAs<PointerType>()->getPointeeType();
 6941     rhptee = RHSTy->castAs<PointerType>()->getPointeeType();
 7083   QualType lhptee = LHSTy->castAs<PointerType>()->getPointeeType();
 7084   QualType rhptee = RHSTy->castAs<PointerType>()->getPointeeType();
 7569     QualType lhptee = LHSTy->castAs<PointerType>()->getPointeeType();
 7590     QualType rhptee = RHSTy->castAs<PointerType>()->getPointeeType();
 7905       cast<PointerType>(LHSType)->getPointeeType().split().asPair();
 7907       cast<PointerType>(RHSType)->getPointeeType().split().asPair();
 7997     if (isa<PointerType>(lhptee) && isa<PointerType>(rhptee)) {
 7997     if (isa<PointerType>(lhptee) && isa<PointerType>(rhptee)) {
 8000           cast<PointerType>(lhptee)->getPointeeType().split().asPair();
 8002           cast<PointerType>(rhptee)->getPointeeType().split().asPair();
 8015       } while (isa<PointerType>(lhptee) && isa<PointerType>(rhptee));
 8015       } while (isa<PointerType>(lhptee) && isa<PointerType>(rhptee));
 8274   if (const PointerType *LHSPointer = dyn_cast<PointerType>(LHSType)) {
 8274   if (const PointerType *LHSPointer = dyn_cast<PointerType>(LHSType)) {
 8276     if (isa<PointerType>(RHSType)) {
 8358     if (const PointerType *RHSPT = RHSType->getAs<PointerType>())
 8358     if (const PointerType *RHSPT = RHSType->getAs<PointerType>())
 8389     if (isa<PointerType>(RHSType)) {
 8420   if (isa<PointerType>(RHSType)) {
 8510         if (RHSType->castAs<PointerType>()->getPointeeType()->isVoidType()) {
 8556   if (const auto *LHSPtrType = LHSType->getAs<PointerType>()) {
 8556   if (const auto *LHSPtrType = LHSType->getAs<PointerType>()) {
 8557     if (const auto *RHSPtrType = RHS.get()->getType()->getAs<PointerType>()) {
 8557     if (const auto *RHSPtrType = RHS.get()->getType()->getAs<PointerType>()) {
 9447     const PointerType *lhsPtr = LHSExpr->getType()->castAs<PointerType>();
 9447     const PointerType *lhsPtr = LHSExpr->getType()->castAs<PointerType>();
 9448     const PointerType *rhsPtr = RHSExpr->getType()->castAs<PointerType>();
 9448     const PointerType *rhsPtr = RHSExpr->getType()->castAs<PointerType>();
 9740     if (const PointerType *RHSPTy
 9741           = RHS.get()->getType()->getAs<PointerType>()) {
10797       LHSType->castAs<PointerType>()->getPointeeType().getCanonicalType();
10799       RHSType->castAs<PointerType>()->getPointeeType().getCanonicalType();
10824         const PointerType *LHSPtr = LHSType->castAs<PointerType>();
10824         const PointerType *LHSPtr = LHSType->castAs<PointerType>();
10825         if (!LHSPtr->isAddressSpaceOverlapping(*RHSType->castAs<PointerType>())) {
10930       if (!((RHSType->isPointerType() && RHSType->castAs<PointerType>()
10932             || (LHSType->isPointerType() && LHSType->castAs<PointerType>()
10951     const PointerType *LPT = LHSType->getAs<PointerType>();
10951     const PointerType *LPT = LHSType->getAs<PointerType>();
10952     const PointerType *RPT = RHSType->getAs<PointerType>();
10952     const PointerType *RPT = RHSType->getAs<PointerType>();
12538   if (const PointerType *PT = OpTy->getAs<PointerType>())
12538   if (const PointerType *PT = OpTy->getAs<PointerType>())
15102     if (const auto *Ptr = Ty->getAs<PointerType>())
15102     if (const auto *Ptr = Ty->getAs<PointerType>())
15850   if (const auto *PT = CaptureType->getAs<PointerType>()) {
15850   if (const auto *PT = CaptureType->getAs<PointerType>()) {
17468       const PointerType *Ptr = DestType->getAs<PointerType>();
17468       const PointerType *Ptr = DestType->getAs<PointerType>();
17523   } else if (const PointerType *Ptr = CalleeType->getAs<PointerType>()) {
17523   } else if (const PointerType *Ptr = CalleeType->getAs<PointerType>()) {
17647     DestType = DestType->castAs<PointerType>()->getPointeeType();
17683     if (const PointerType *Ptr = Type->getAs<PointerType>()) {
17683     if (const PointerType *Ptr = Type->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaExprCXX.cpp
  868   if (const PointerType* Ptr = Ty->getAs<PointerType>()) {
  868   if (const PointerType* Ptr = Ty->getAs<PointerType>()) {
 3250         if (const PointerType *ConvPtrType = ConvType->getAs<PointerType>())
 3250         if (const PointerType *ConvPtrType = ConvType->getAs<PointerType>())
 3305     QualType Pointee = Type->castAs<PointerType>()->getPointeeType();
 3700     if (const PointerType *ToPtrType = ToType->getAs<PointerType>())
 3700     if (const PointerType *ToPtrType = ToType->getAs<PointerType>())
 5454     if (const PointerType *Ptr = LHSType->getAs<PointerType>())
 5454     if (const PointerType *Ptr = LHSType->getAs<PointerType>())
 6197     const PointerType *Ptr1, *Ptr2;
 6198     if ((Ptr1 = Composite1->getAs<PointerType>()) &&
 6199         (Ptr2 = Composite2->getAs<PointerType>())) {
 6388       if (const PointerType *Ptr = T->getAs<PointerType>())
 6388       if (const PointerType *Ptr = T->getAs<PointerType>())
 6724       if (const PointerType *Ptr = BaseType->getAs<PointerType>())
 6724       if (const PointerType *Ptr = BaseType->getAs<PointerType>())
 6861     if (const PointerType *Ptr = ObjectType->getAs<PointerType>()) {
 6861     if (const PointerType *Ptr = ObjectType->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaExprMember.cpp
  497     const PointerType *PT = BaseType->getAs<PointerType>();
  497     const PointerType *PT = BaseType->getAs<PointerType>();
  766     if (IsArrow) RecordTy = RecordTy->getAs<PointerType>()->getPointeeType();
  973     BaseType = BaseType->castAs<PointerType>()->getPointeeType();
 1221   if (const PointerType *PT = T->getAs<PointerType>())
 1221   if (const PointerType *PT = T->getAs<PointerType>())
 1268     if (const PointerType *Ptr = BaseType->getAs<PointerType>())
 1268     if (const PointerType *Ptr = BaseType->getAs<PointerType>())
 1642   if (const PointerType *Ptr = BaseType->getAs<PointerType>()) {
 1642   if (const PointerType *Ptr = BaseType->getAs<PointerType>()) {
 1747     if (const auto *Ptr = dyn_cast<PointerType>(
 1747     if (const auto *Ptr = dyn_cast<PointerType>(
 1782     if (IsArrow) BaseType = BaseType->getAs<PointerType>()->getPointeeType();
tools/clang/lib/Sema/SemaExprObjC.cpp
  514   if (const PointerType *PT = ValueType->getAs<PointerType>()) {
  514   if (const PointerType *PT = ValueType->getAs<PointerType>()) {
  846     const PointerType *PtrT = T->getAs<PointerType>();
  846     const PointerType *PtrT = T->getAs<PointerType>();
  875   QualType RequiredType = ObjectsType->castAs<PointerType>()->getPointeeType();
  963     const PointerType *PtrValue = ValueT->getAs<PointerType>();
  963     const PointerType *PtrValue = ValueT->getAs<PointerType>();
  977     const PointerType *PtrKey = KeyT->getAs<PointerType>();
  977     const PointerType *PtrKey = KeyT->getAs<PointerType>();
 1030   QualType ValueT = ValuesT->castAs<PointerType>()->getPointeeType();
 1032   QualType KeyT = KeysT->castAs<PointerType>()->getPointeeType();
 3281     if (const PointerType *ptr = type->getAs<PointerType>()) {
 3281     if (const PointerType *ptr = type->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaFixItUtils.cpp
   34   if (isa<PointerType>(From) && isa<PointerType>(To)) {
   34   if (isa<PointerType>(From) && isa<PointerType>(To)) {
   36         (cast<PointerType>(From))->getPointeeType());
   38         (cast<PointerType>(To))->getPointeeType());
   93   if (const PointerType *FromPtrTy = dyn_cast<PointerType>(FromQTy)) {
   93   if (const PointerType *FromPtrTy = dyn_cast<PointerType>(FromQTy)) {
  127   if (isa<PointerType>(ToQTy)) {
tools/clang/lib/Sema/SemaInit.cpp
 8152       if (const auto *FromPtrType =
 8153               CurInit.get()->getType()->getAs<PointerType>()) {
 8154         if (const auto *ToPtrType = Step->Type->getAs<PointerType>()) {
 8154         if (const auto *ToPtrType = Step->Type->getAs<PointerType>()) {
tools/clang/lib/Sema/SemaLookup.cpp
 2843       T = cast<PointerType>(T)->getPointeeType().getTypePtr();
 3412           FD->getParamDecl(0)->getType()->getAs<PointerType>())
tools/clang/lib/Sema/SemaOverload.cpp
  252     if (const PointerType* ToPtrType = ToType->getAs<PointerType>())
  252     if (const PointerType* ToPtrType = ToType->getAs<PointerType>())
 1495       CanTo = CanTo.castAs<PointerType>()->getPointeeType();
 1496       CanFrom = CanFrom.castAs<PointerType>()->getPointeeType();
 2305       ToType->castAs<PointerType>()->getPointeeType()->isVoidType()) {
 2325   const PointerType* ToTypePtr = ToType->getAs<PointerType>();
 2325   const PointerType* ToTypePtr = ToType->getAs<PointerType>();
 2346   const PointerType *FromTypePtr = FromType->getAs<PointerType>();
 2346   const PointerType *FromTypePtr = FromType->getAs<PointerType>();
 2490   if (const PointerType *ToCPtr = ToType->getAs<PointerType>())
 2490   if (const PointerType *ToCPtr = ToType->getAs<PointerType>())
 2513   if (const PointerType *FromCPtr = FromType->getAs<PointerType>())
 2513   if (const PointerType *FromCPtr = FromType->getAs<PointerType>())
 2627   if (const PointerType *ToPointer = ToType->getAs<PointerType>())
 2627   if (const PointerType *ToPointer = ToType->getAs<PointerType>())
 2640   if (const PointerType *FromPointer = FromType->getAs<PointerType>())
 2640   if (const PointerType *FromPointer = FromType->getAs<PointerType>())
 2938   if (const PointerType *ToPtrType = ToType->getAs<PointerType>()) {
 2938   if (const PointerType *ToPtrType = ToType->getAs<PointerType>()) {
 2939     if (const PointerType *FromPtrType = FromType->getAs<PointerType>()) {
 2939     if (const PointerType *FromPtrType = FromType->getAs<PointerType>()) {
 3304     User.After.setFromType(ThisType->castAs<PointerType>()->getPointeeType());
 3495       User.After.setFromType(ThisType->castAs<PointerType>()->getPointeeType());
 4183         FromType1->castAs<PointerType>()->getPointeeType().getUnqualifiedType();
 4185         ToType1->castAs<PointerType>()->getPointeeType().getUnqualifiedType();
 4187         FromType2->castAs<PointerType>()->getPointeeType().getUnqualifiedType();
 4189         ToType2->castAs<PointerType>()->getPointeeType().getUnqualifiedType();
 5186   if (const PointerType *PT = FromType->getAs<PointerType>()) {
 5186   if (const PointerType *PT = FromType->getAs<PointerType>()) {
 5299     Method->getThisType()->castAs<PointerType>()->getPointeeType();
 5302   if (const PointerType *PT = From->getType()->getAs<PointerType>()) {
 5302   if (const PointerType *PT = From->getType()->getAs<PointerType>()) {
 7100   if (const PointerType *FromPtrType = ImplicitParamType->getAs<PointerType>())
 7100   if (const PointerType *FromPtrType = ImplicitParamType->getAs<PointerType>())
 7645   const PointerType *PointerTy = Ty->getAs<PointerType>();
 7645   const PointerType *PointerTy = Ty->getAs<PointerType>();
 7777   else if (Ty->getAs<PointerType>() || Ty->getAs<ObjCObjectPointerType>()) {
 7887           if (const PointerType *ResTypePtr = CanTy->getAs<PointerType>())
 7887           if (const PointerType *ResTypePtr = CanTy->getAs<PointerType>())
 9965     if (CanQual<PointerType> FromPT = CFromTy->getAs<PointerType>())
 9965     if (CanQual<PointerType> FromPT = CFromTy->getAs<PointerType>())
 9966       if (CanQual<PointerType> ToPT = CToTy->getAs<PointerType>()) {
 9966       if (CanQual<PointerType> ToPT = CToTy->getAs<PointerType>()) {
10048   if (const PointerType *PTy = TempFromTy->getAs<PointerType>())
10048   if (const PointerType *PTy = TempFromTy->getAs<PointerType>())
10064   if (const PointerType *FromPtrTy = FromTy->getAs<PointerType>()) {
10064   if (const PointerType *FromPtrTy = FromTy->getAs<PointerType>()) {
10065     if (const PointerType *ToPtrTy = ToTy->getAs<PointerType>()) {
10065     if (const PointerType *ToPtrTy = ToTy->getAs<PointerType>()) {
10112       isa<PointerType>(CToTy)) {
10734   if (const PointerType *FnTypePtr = FnType->getAs<PointerType>()) {
10734   if (const PointerType *FnTypePtr = FnType->getAs<PointerType>()) {
10992     if (const PointerType *ConvPtrType = ConvType->getAs<PointerType>())
10992     if (const PointerType *ConvPtrType = ConvType->getAs<PointerType>())
11257   if (const PointerType *ToTypePtr =
11258     PossiblyAFunctionType->getAs<PointerType>())
13333       objectType = objectType->castAs<PointerType>()->getPointeeType();
13663       if (const PointerType *ConvPtrType = ConvType->getAs<PointerType>())
13663       if (const PointerType *ConvPtrType = ConvType->getAs<PointerType>())
tools/clang/lib/Sema/SemaStmt.cpp
 3862       const PointerType *PT = ThrowType->getAs<PointerType>();
 3862       const PointerType *PT = ThrowType->getAs<PointerType>();
 3901     const PointerType *pointerType = type->getAs<PointerType>();
 3901     const PointerType *pointerType = type->getAs<PointerType>();
tools/clang/lib/Sema/SemaStmtAsm.cpp
  796       if (const auto *PT = QT->getAs<PointerType>())
  796       if (const auto *PT = QT->getAs<PointerType>())
tools/clang/lib/Sema/SemaTemplate.cpp
 5503 bool UnnamedLocalNoLinkageFinder::VisitPointerType(const PointerType* T) {
 5864       !ParamType->castAs<PointerType>()->getPointeeType()->isFunctionType() &&
 6740        ParamType->castAs<PointerType>()->getPointeeType()->isFunctionType()) ||
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 1539       if (const PointerType *PointerArg = Arg->getAs<PointerType>()) {
 1539       if (const PointerType *PointerArg = Arg->getAs<PointerType>()) {
 1550                                      cast<PointerType>(Param)->getPointeeType(),
 3251   if (const PointerType *OriginalParamPtr
 3252       = OriginalParamType->getAs<PointerType>()) {
 3253     if (const PointerType *DeducedAPtr = DeducedA->getAs<PointerType>()) {
 3253     if (const PointerType *DeducedAPtr = DeducedA->getAs<PointerType>()) {
 3254       if (const PointerType *APtr = A->getAs<PointerType>()) {
 3254       if (const PointerType *APtr = A->getAs<PointerType>()) {
 3664       (isa<PointerType>(ParamType) &&
 3666                               ParamType->getAs<PointerType>()->getPointeeType())))
 4665     if (FD->getReturnType()->getAs<PointerType>())
 5361                                cast<PointerType>(T)->getPointeeType(),
tools/clang/lib/Sema/SemaType.cpp
 3656     if (auto ptrType = type->getAs<PointerType>()) {
 6073     if (const PointerType *ptr = type->getAs<PointerType>()) {
 6073     if (const PointerType *ptr = type->getAs<PointerType>()) {
 6344         } else if (isa<PointerType>(Ty)) {
 6345           T = cast<PointerType>(Ty)->getPointeeType();
 6416         QualType New = wrap(C, cast<PointerType>(Old)->getPointeeType(), I);
 6505   if (!isa<PointerType>(Desugared)) {
tools/clang/lib/Sema/TreeTransform.h
 4579     = getDerived().TransformType(TLB, TL.getPointeeLoc());
 4579     = getDerived().TransformType(TLB, TL.getPointeeLoc());
 4586   QualType Result = TL.getType();
 4594     ObjCObjectPointerTypeLoc NewT = TLB.push<ObjCObjectPointerTypeLoc>(Result);
 4595     NewT.setStarLoc(TL.getStarLoc());
 4600       PointeeType != TL.getPointeeLoc().getType()) {
 4601     Result = getDerived().RebuildPointerType(PointeeType, TL.getSigilLoc());
 4608   TLB.TypeWasModifiedSafely(Result->getPointeeType());
 4610   PointerTypeLoc NewT = TLB.push<PointerTypeLoc>(Result);
 4611   NewT.setSigilLoc(TL.getSigilLoc());
11806     ObjectType = BaseType->castAs<PointerType>()->getPointeeType();
13325       (isArrow && BaseType->getAs<PointerType>() &&
13326        !BaseType->castAs<PointerType>()->getPointeeType()
tools/clang/lib/Serialization/ASTWriter.cpp
  194 void ASTTypeWriter::VisitPointerType(const PointerType *T) {
tools/clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp
   91   const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr());
   91   const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr());
tools/clang/lib/StaticAnalyzer/Checkers/CastToStructChecker.cpp
   45   const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr());
   45   const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr());
   46   const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr());
   46   const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr());
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
  344     const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
  344     const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
  386     const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
  386     const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
  428   const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
  428   const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
  470   const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
  470   const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
  510   const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>();
  510   const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>();
  550   const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
  550   const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
  819     const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
  819     const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
  848     const PointerType *PT = FTP->getParamType(0)->getAs<PointerType>();
  848     const PointerType *PT = FTP->getParamType(0)->getAs<PointerType>();
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
  688       const auto *PtrTy = dyn_cast<PointerType>(D->getType().getTypePtr());
  688       const auto *PtrTy = dyn_cast<PointerType>(D->getType().getTypePtr());
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
  139   if (B->isVoidPointerType() && A->getAs<PointerType>())
  149     if (const PointerType *ptrA = A->getAs<PointerType>())
  149     if (const PointerType *ptrA = A->getAs<PointerType>())
  150       if (const PointerType *ptrB = B->getAs<PointerType>()) {
  150       if (const PointerType *ptrB = B->getAs<PointerType>()) {
tools/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp
  282   const PointerType* PPT = T->getAs<PointerType>();
  282   const PointerType* PPT = T->getAs<PointerType>();
  302   const PointerType* PPT = T->getAs<PointerType>();
  302   const PointerType* PPT = T->getAs<PointerType>();
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
  121   if (const auto *PT = T->getAs<PointerType>()) {
  121   if (const auto *PT = T->getAs<PointerType>()) {
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
  291                                   const PointerType *PT,
 1102   const auto *PT = thisPointerTy->getAs<PointerType>();
 1102   const auto *PT = thisPointerTy->getAs<PointerType>();
 1111                                PT != D->getThisType()->getAs<PointerType>())) {
tools/clang/tools/extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp
  106   const auto *ThisTypePtr = Result.Nodes.getNodeAs<PointerType>("thisType");
  106   const auto *ThisTypePtr = Result.Nodes.getNodeAs<PointerType>("thisType");
tools/clang/tools/extra/clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp
  142   if (const auto *PT = caughtType.getCanonicalType()->getAs<PointerType>()) {
  142   if (const auto *PT = caughtType.getCanonicalType()->getAs<PointerType>()) {
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
   23   if (auto PT = QT->getAs<PointerType>()) {
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  253                            Type->castAs<PointerType>()->getPointeeType());
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
   74   if (isa<PointerType>(T) || isa<ReferenceType>(T))
   85   if ((isa<PointerType>(T) || isa<ReferenceType>(T)) &&
   86       isa<PointerType>(T->getPointeeType()))
tools/clang/tools/libclang/CXType.cpp
  452       T = cast<PointerType>(TP)->getPointeeType();
tools/clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp
  170   auto PT = selectFirst<PointerType>(
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  277     const clang::PointerType *pointer_pointertype =
  278         pointer_type->getAs<clang::PointerType>();
tools/lldb/source/Symbol/ClangASTContext.cpp
 3357                                       llvm::cast<clang::PointerType>(qual_type)
 3428                                       llvm::cast<clang::PointerType>(qual_type)
 3706           llvm::cast<clang::PointerType>(qual_type)->getPointeeType();
 5643     const clang::PointerType *pointer_type =
 5644         llvm::cast<clang::PointerType>(qual_type.getTypePtr());
 7582       const clang::PointerType *pointer_type =
 7583           llvm::cast<clang::PointerType>(qual_type.getTypePtr());
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
 1447     : public __and_<is_destructible<_Tp>, integral_constant<bool,
 1554     { typedef _Tp     type; };
 1558     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };