Home
last modified time | relevance | path

Searched refs:CountInBytes (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBoundsSafety.cpp21 getCountAttrKind(bool CountInBytes, bool OrNull) { in getCountAttrKind() argument
22 if (CountInBytes) in getCountAttrKind()
53 bool Sema::CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, bool CountInBytes, in CheckCountedByAttrOnField() argument
57 unsigned Kind = getCountAttrKind(CountInBytes, OrNull); in CheckCountedByAttrOnField()
66 if (FieldTy->isArrayType() && (CountInBytes || OrNull)) { in CheckCountedByAttrOnField()
107 if (PointeeTy->isAlwaysIncompleteType() && !CountInBytes) { in CheckCountedByAttrOnField()
H A DSemaDeclAttr.cpp6604 bool CountInBytes; in handleCountedByAttrField() local
6608 CountInBytes = false; in handleCountedByAttrField()
6612 CountInBytes = false; in handleCountedByAttrField()
6616 CountInBytes = true; in handleCountedByAttrField()
6620 CountInBytes = true; in handleCountedByAttrField()
6627 if (S.CheckCountedByAttrOnField(FD, CountExpr, CountInBytes, OrNull)) in handleCountedByAttrField()
6631 FD->getType(), CountExpr, CountInBytes, OrNull); in handleCountedByAttrField()
H A DSemaType.cpp9667 bool CountInBytes, in BuildCountAttributedArrayOrPointerType() argument
9675 return Context.getCountAttributedType(WrappedTy, CountExpr, CountInBytes, in BuildCountAttributedArrayOrPointerType()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTypeProperties.td35 def : Property<"CountInBytes", Bool> {
44 …def : Creator<[{ return ctx.getCountAttributedType(WrappedTy, CountExpr, CountInBytes, OrNull, Cou…
H A DType.h2270 unsigned CountInBytes : 1;
3375 bool CountInBytes, bool OrNull,
3391 bool isCountInBytes() const { return CountAttributedTypeBits.CountInBytes; }
3405 Expr *CountExpr, bool CountInBytes, bool Nullable);
H A DASTContext.h1516 getCountAttributedType(QualType T, Expr *CountExpr, bool CountInBytes,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp457 bool CountInBytes, bool OrNull) { in Profile() argument
459 ID.AddBoolean(CountInBytes); in Profile()
3997 QualType Wrapped, QualType Canon, Expr *CountExpr, bool CountInBytes, in CountAttributedType() argument
4002 CountAttributedTypeBits.CountInBytes = CountInBytes; in CountAttributedType()
H A DASTContext.cpp3698 QualType WrappedTy, Expr *CountExpr, bool CountInBytes, bool OrNull, in getCountAttributedType() argument
3703 CountAttributedType::Profile(ID, WrappedTy, CountExpr, CountInBytes, OrNull); in getCountAttributedType()
3715 new (CATy) CountAttributedType(WrappedTy, CanonTy, CountExpr, CountInBytes, in getCountAttributedType()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h2448 bool CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, bool CountInBytes,
14944 bool CountInBytes,