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

Declarations

gen/tools/clang/include/clang/AST/TypeNodes.inc
   24 NON_CANONICAL_TYPE(Attributed, Type)
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h
   24 class AttributedType;

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*,
  331                             typename cast_retty<X, const Y>::ret_type>::type
  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
  227   llvm::FoldingSet<AttributedType> AttributedTypes;
tools/clang/include/clang/AST/ASTNodeTraverser.h
  318   void VisitAttributedType(const AttributedType *T) {
tools/clang/include/clang/AST/RecursiveASTVisitor.h
 1061                   { TRY_TO(TraverseType(T->getModifiedType())); })
 1315                      { TRY_TO(TraverseTypeLoc(TL.getModifiedLoc())); })
tools/clang/include/clang/AST/Type.h
 2420 template <> const AttributedType *Type::getAs() const;
 6890     if (const auto *A = dyn_cast<AttributedType>(Ty))
 6890     if (const auto *A = dyn_cast<AttributedType>(Ty))
 6943   (void)AttributedType::stripOuterNullability(Adjusted);
 6950   (void)AttributedType::stripOuterNullability(Decayed);
tools/clang/include/clang/AST/TypeLoc.h
  370     return TypeClass::classof(Ty);
  405   const TypeClass *getTypePtr() const {
  406     return cast<TypeClass>(Base::getTypePtr());
  853                                                  AttributedType,
tools/clang/include/clang/Sema/Sema.h
 3757   const AttributedType *getCallingConvAttributedType(QualType T) const;
tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
  105     if (isa<AttributedType>(ty.getTypePtr()))
tools/clang/lib/ARCMigrate/TransProperties.cpp
  321         if (isa<AttributedType>(I->IvarD->getType()))
tools/clang/lib/ARCMigrate/Transforms.cpp
  361     if (const AttributedType *AttrT = T->getAs<AttributedType>()) {
  361     if (const AttributedType *AttrT = T->getAs<AttributedType>()) {
tools/clang/lib/AST/ASTContext.cpp
 2175                   cast<AttributedType>(T)->getEquivalentType().getTypePtr());
 2864   if (const auto *AT = dyn_cast<AttributedType>(Orig))
 2864   if (const auto *AT = dyn_cast<AttributedType>(Orig))
 4044   AttributedType::Profile(id, attrKind, modifiedType, equivalentType);
 4047   AttributedType *type = AttributedTypes.FindNodeOrInsertPos(id, insertPos);
 4052       AttributedType(canon, attrKind, modifiedType, equivalentType);
 5649         AttributedType::getNullabilityAttrKind(*Nullability), Result, Result);
 7969     if (const AttributedType *Attr = dyn_cast<AttributedType>(Ty)) {
 7969     if (const AttributedType *Attr = dyn_cast<AttributedType>(Ty)) {
tools/clang/lib/AST/ASTDiagnostic.cpp
   56     if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) {
   56     if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) {
   79       if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) {
   81             AttributedType::getNullabilityAttrKind(*nullability), RT, RT);
   91                   AttributedType::stripOuterNullability(SugarPT)) {
   93                 AttributedType::getNullabilityAttrKind(*nullability), PT, PT);
tools/clang/lib/AST/ASTImporter.cpp
  340     ExpectedType VisitAttributedType(const AttributedType *T);
 1361 ExpectedType ASTNodeImporter::VisitAttributedType(const AttributedType *T) {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  676                                   cast<AttributedType>(T1)->getModifiedType(),
  677                                   cast<AttributedType>(T2)->getModifiedType()))
  680             Context, cast<AttributedType>(T1)->getEquivalentType(),
  681             cast<AttributedType>(T2)->getEquivalentType()))
tools/clang/lib/AST/DeclPrinter.cpp
 1223     if (auto nullability = AttributedType::stripOuterNullability(T))
 1534       if (auto nullability = AttributedType::stripOuterNullability(T)) {
tools/clang/lib/AST/ODRHash.cpp
  815   void VisitAttributedType(const AttributedType *T) {
tools/clang/lib/AST/Type.cpp
  438 template<typename T> static const T *getAsSugar(const Type *Cur) {
  440     if (const auto *Sugar = dyn_cast<T>(Cur))
  440     if (const auto *Sugar = dyn_cast<T>(Cur))
  464 template <> const AttributedType *Type::getAs() const {
  465   return getAsSugar<AttributedType>(this);
 1069   QualType VisitAttributedType(const AttributedType *T) {
 1355   QualType VisitAttributedType(const AttributedType *attrType) {
 1360     const auto *newAttrType = dyn_cast<AttributedType>(newType.getTypePtr());
 1360     const auto *newAttrType = dyn_cast<AttributedType>(newType.getTypePtr());
 1707   while (const auto *AT = Cur->getAs<AttributedType>()) {
 1707   while (const auto *AT = Cur->getAs<AttributedType>()) {
 1787     Type *VisitAttributedType(const AttributedType *T) {
 3199   QualType Inner = cast<AttributedType>(getUnderlyingType())->getModifiedType();
 3823   while (const auto *AT = Type->getAs<AttributedType>()) {
 3823   while (const auto *AT = Type->getAs<AttributedType>()) {
 3966   if (auto attributed = dyn_cast<AttributedType>(AttrTy)) {
tools/clang/lib/AST/TypePrinter.cpp
  269       const auto *AttrTy = cast<AttributedType>(T);
  269       const auto *AttrTy = cast<AttributedType>(T);
 1403 void TypePrinter::printAttributedBefore(const AttributedType *T,
 1445 void TypePrinter::printAttributedAfter(const AttributedType *T,
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 2880       T = cast<AttributedType>(T)->getEquivalentType();
tools/clang/lib/Sema/SemaCodeComplete.cpp
 2666     if (auto nullability = AttributedType::stripOuterNullability(Type)) {
 8218       AttributedType::stripOuterNullability(ResTy);
 8252       AttributedType::stripOuterNullability(ParamType);
tools/clang/lib/Sema/SemaDecl.cpp
 2977                          AttributedType::getNullabilityAttrKind(*Oldnullability),
 3025 const AttributedType *Sema::getCallingConvAttributedType(QualType T) const {
 3026   const AttributedType *AT = T->getAs<AttributedType>();
 3026   const AttributedType *AT = T->getAs<AttributedType>();
 3028     AT = AT->getModifiedType()->getAs<AttributedType>();
tools/clang/lib/Sema/SemaDeclObjC.cpp
 4448            AttributedType::getNullabilityAttrKind(*prevNullability),
 4566     (void)AttributedType::stripOuterNullability(bareResultType);
tools/clang/lib/Sema/SemaExpr.cpp
 7782   auto NewAttr = AttributedType::getNullabilityAttrKind(MergedKind);
tools/clang/lib/Sema/SemaExprObjC.cpp
  542                   AttributedType::getNullabilityAttrKind(
  595             AttributedType::getNullabilityAttrKind(*Nullability), BoxedType,
 1281   if (auto nullability = AttributedType::stripOuterNullability(T)) {
 1284                AttributedType::getNullabilityAttrKind(*nullability),
 1321       (void)AttributedType::stripOuterNullability(type);
 1325                AttributedType::getNullabilityAttrKind(*nullability),
 1389       AttributedType::stripOuterNullability(T);
 1400               AttributedType::getNullabilityAttrKind(*Nullability),
 1444     if (auto attributed = dyn_cast<AttributedType>(resultType.getTypePtr())) {
 1456              AttributedType::getNullabilityAttrKind(newNullability),
 4222       else if (const AttributedType *AT = dyn_cast<AttributedType>(DT))
 4222       else if (const AttributedType *AT = dyn_cast<AttributedType>(DT))
tools/clang/lib/Sema/SemaObjCProperty.cpp
 2392       if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) {
 2466         if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){
tools/clang/lib/Sema/SemaType.cpp
  181     using TypeAttrPair = std::pair<const AttributedType*, const Attr*>;
  257       AttrsForTypes.push_back({cast<AttributedType>(T.getTypePtr()), A});
  267       if (auto *AttrTy = TypeWithAuto->getAs<AttributedType>()) {
  269         auto *NewAttrTy = cast<AttributedType>(T.getTypePtr());
  280     const Attr *takeAttrForAttributedType(const AttributedType *AT) {
 6356         } else if (isa<AttributedType>(Ty)) {
 6357           T = cast<AttributedType>(Ty)->getEquivalentType();
 6408         return wrap(C, cast<AttributedType>(Old)->getEquivalentType(), I);
 6469   const AttributedType *AT = dyn_cast<AttributedType>(Type);
 6469   const AttributedType *AT = dyn_cast<AttributedType>(Type);
 6495     AT = dyn_cast<AttributedType>(Desugared);
 6561   while (auto attributed = dyn_cast<AttributedType>(desugared.getTypePtr())) {
 6598               = AttributedType::stripOuterNullability(underlyingType)) {
 7073   const AttributedType *AT;
 7077   while ((AT = T->getAs<AttributedType>()) &&
 7710     if (isa<AttributedType>(type) && attr.hasMacroIdentifier() &&
tools/clang/lib/Sema/TreeTransform.h
 6214   const AttributedType *oldType = TL.getTypePtr();
 6214   const AttributedType *oldType = TL.getTypePtr();
 6215   QualType modifiedType = getDerived().TransformType(TLB, TL.getModifiedLoc());
 6215   QualType modifiedType = getDerived().TransformType(TLB, TL.getModifiedLoc());
 6220   const Attr *oldAttr = TL.getAttr();
 6225   QualType result = TL.getType();
 6241         SemaRef.Diag(TL.getAttr()->getLocation(),
 6248     result = SemaRef.Context.getAttributedType(TL.getAttrKind(),
 6253   AttributedTypeLoc newTL = TLB.push<AttributedTypeLoc>(result);
tools/clang/lib/Serialization/ASTReader.cpp
 6641     AttributedType::Kind kind = static_cast<AttributedType::Kind>(Record[2]);
tools/clang/lib/Serialization/ASTWriter.cpp
  404 void ASTTypeWriter::VisitAttributedType(const AttributedType *T) {
tools/clang/lib/StaticAnalyzer/Checkers/NonnullGlobalConstantsChecker.cpp
  117     } else if (const auto *AT = dyn_cast<AttributedType>(T)) {
  117     } else if (const auto *AT = dyn_cast<AttributedType>(T)) {
tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
  102   const auto *AttrType = Type->getAs<AttributedType>();
  102   const auto *AttrType = Type->getAs<AttributedType>();
tools/clang/tools/libclang/CXType.cpp
  130     if (auto *ATT = T->getAs<AttributedType>()) {
 1045   if (auto *ATT = T->getAs<AttributedType>())
tools/lldb/source/Symbol/ClangASTContext.cpp
 2721         ast, llvm::cast<clang::AttributedType>(qual_type)->getModifiedType(),
 3958         qual_type->getAs<clang::AttributedType>()
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; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };