Home
last modified time | relevance | path

Searched refs:CountAttributedType (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBoundsSafety.cpp20 static CountAttributedType::DynamicCountPointerKind
23 return OrNull ? CountAttributedType::SizedByOrNull in getCountAttrKind()
24 : CountAttributedType::SizedBy; in getCountAttrKind()
25 return OrNull ? CountAttributedType::CountedByOrNull in getCountAttrKind()
26 : CountAttributedType::CountedBy; in getCountAttrKind()
221 const CountAttributedType *CATy, in EmitIncompleteCountedByPointeeNotes()
258 static std::tuple<const CountAttributedType *, QualType>
260 auto *CATy = Ty->getAs<CountAttributedType>(); in GetCountedByAttrOnIncompletePointee()
H A DSemaChecking.cpp5988 ME->getMemberDecl()->getType()->getAs<CountAttributedType>(); in BuiltinCountedByRef()
5989 CATy && CATy->getKind() == CountAttributedType::CountedBy) { in BuiltinCountedByRef()
H A DTreeTransform.h7628 const CountAttributedType *OldTy = TL.getTypePtr(); in TransformCountAttributedType()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTypeNodes.td115 def CountAttributedType : TypeNode<BoundsAttributedType>, NeverCanonical;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp455 void CountAttributedType::Profile(llvm::FoldingSetNodeID &ID, in Profile()
646 template <> const CountAttributedType *Type::getAs() const { in getAs()
647 return getAsSugar<CountAttributedType>(this); in getAs()
744 return getAs<CountAttributedType>(); in isCountAttributedType()
3996 CountAttributedType::CountAttributedType( in CountAttributedType() function in CountAttributedType
4009 StringRef CountAttributedType::getAttributeName(bool WithMacroPrefix) const { in getAttributeName()
H A DTypePrinter.cpp1821 static void printCountAttributedImpl(const CountAttributedType *T, in printCountAttributedImpl()
1838 void TypePrinter::printCountAttributedBefore(const CountAttributedType *T, in printCountAttributedBefore()
1845 void TypePrinter::printCountAttributedAfter(const CountAttributedType *T, in printCountAttributedAfter()
H A DASTStructuralEquivalence.cpp1158 cast<CountAttributedType>(T1)->desugar(), in IsStructurallyEquivalent()
1159 cast<CountAttributedType>(T2)->desugar())) in IsStructurallyEquivalent()
H A DASTContext.cpp2555 return getTypeInfo(cast<CountAttributedType>(T)->desugar().getTypePtr()); in getTypeInfoImpl()
3703 CountAttributedType::Profile(ID, WrappedTy, CountExpr, CountInBytes, OrNull); in getCountAttributedType()
3706 CountAttributedType *CATy = in getCountAttributedType()
3712 size_t Size = CountAttributedType::totalSizeToAlloc<TypeCoupledDeclRefInfo>( in getCountAttributedType()
3714 CATy = (CountAttributedType *)Allocate(Size, TypeAlignment); in getCountAttributedType()
3715 new (CATy) CountAttributedType(WrappedTy, CanonTy, CountExpr, CountInBytes, in getCountAttributedType()
14518 const auto *DX = cast<CountAttributedType>(X), in getCommonSugarTypeNode()
14519 *DY = cast<CountAttributedType>(Y); in getCommonSugarTypeNode()
H A DDecl.cpp4786 const auto *CAT = getType()->getAs<CountAttributedType>(); in findCountedByField()
H A DASTImporter.cpp1777 ASTNodeImporter::VisitCountAttributedType(const CountAttributedType *T) { in VisitCountAttributedType()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DType.h2262 friend class CountAttributedType;
3076 template <> const CountAttributedType *Type::getAs() const;
3361 class CountAttributedType final
3363 public llvm::TrailingObjects<CountAttributedType,
3374 CountAttributedType(QualType Wrapped, QualType Canon, Expr *CountExpr,
H A DTypeProperties.td28 let Class = CountAttributedType in {
H A DRecursiveASTVisitor.h1145 DEF_TRAVERSE_TYPE(CountAttributedType, {
1459 DEF_TRAVERSE_TYPELOC(CountAttributedType,
H A DTypeLoc.h1192 CountAttributedType> {
H A DASTContext.h265 mutable llvm::FoldingSet<CountAttributedType> CountAttributedTypes;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp1213 auto *CAT = ElementTy->getAs<CountAttributedType>(); in emitCountedByPointerSize()
1214 if (!CAT || (CAT->getKind() != CountAttributedType::SizedBy && in emitCountedByPointerSize()
1215 CAT->getKind() != CountAttributedType::SizedByOrNull)) in emitCountedByPointerSize()
3694 ME->getMemberDecl()->getType()->getAs<CountAttributedType>(); in EmitBuiltinExpr()
3695 CATy && CATy->getKind() == CountAttributedType::CountedBy) { in EmitBuiltinExpr()
H A DCGDebugInfo.cpp3854 T = cast<CountAttributedType>(T)->desugar(); in UnwrapTypeForDebugInfo()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp4666 auto *CAT = VD->getType()->getAs<CountAttributedType>(); in DiagnoseCountAttributedTypeInUnnamedAnon()