Home
last modified time | relevance | path

Searched refs:getAttrKind (Results 1 – 25 of 34) sorted by relevance

12

/external/clang/lib/AST/
DTypePrinter.cpp1171 if (T->getAttrKind() == AttributedType::attr_objc_gc || in printAttributedBefore()
1172 T->getAttrKind() == AttributedType::attr_objc_ownership) in printAttributedBefore()
1175 if (T->getAttrKind() == AttributedType::attr_objc_kindof) in printAttributedBefore()
1181 switch (T->getAttrKind()) { in printAttributedBefore()
1192 if (T->getAttrKind() == AttributedType::attr_nonnull || in printAttributedBefore()
1193 T->getAttrKind() == AttributedType::attr_nullable || in printAttributedBefore()
1194 T->getAttrKind() == AttributedType::attr_null_unspecified) { in printAttributedBefore()
1195 if (T->getAttrKind() == AttributedType::attr_nonnull) in printAttributedBefore()
1197 else if (T->getAttrKind() == AttributedType::attr_nullable) in printAttributedBefore()
1199 else if (T->getAttrKind() == AttributedType::attr_null_unspecified) in printAttributedBefore()
[all …]
DTypeLoc.cpp362 if (attributedLoc.getAttrKind() == AttributedType::attr_nullable || in findNullabilityLoc()
363 attributedLoc.getAttrKind() == AttributedType::attr_nonnull || in findNullabilityLoc()
364 attributedLoc.getAttrKind() == AttributedType::attr_null_unspecified) in findNullabilityLoc()
DType.cpp523 if (attributed->getAttrKind() == in isObjCInertUnsafeUnretainedType()
941 return Ctx.getAttributedType(T->getAttrKind(), modifiedType, in TRIVIAL_TYPE_CLASS()
2969 switch (getAttrKind()) { in isQualifier()
3014 switch (getAttrKind()) { in isMSTypeSpec()
3026 switch (getAttrKind()) { in isCallingConv()
3610 if (getAttrKind() == AttributedType::attr_nonnull) in getImmediateNullability()
3612 if (getAttrKind() == AttributedType::attr_nullable) in getImmediateNullability()
3614 if (getAttrKind() == AttributedType::attr_null_unspecified) in getImmediateNullability()
/external/llvm-project/clang/lib/AST/
DTypePrinter.cpp275 CanPrefixQualifiers = AttrTy->getAttrKind() == attr::AddressSpace; in canPrefixQualifiers()
1542 if (T->getAttrKind() == attr::ObjCGC || in printAttributedBefore()
1543 T->getAttrKind() == attr::ObjCOwnership) in printAttributedBefore()
1546 if (T->getAttrKind() == attr::ObjCKindOf) in printAttributedBefore()
1549 if (T->getAttrKind() == attr::AddressSpace) in printAttributedBefore()
1555 switch (T->getAttrKind()) { in printAttributedBefore()
1567 if (T->getAttrKind() == attr::TypeNonNull) in printAttributedBefore()
1569 else if (T->getAttrKind() == attr::TypeNullable) in printAttributedBefore()
1571 else if (T->getAttrKind() == attr::TypeNullUnspecified) in printAttributedBefore()
1573 else if (T->getAttrKind() == attr::TypeNullableResult) in printAttributedBefore()
[all …]
DType.cpp1150 return Ctx.getAttributedType(T->getAttrKind(), modifiedType, in SUGARED_TYPE_CLASS()
1426 if (!newAttrType || newAttrType->getAttrKind() != attr::ObjCKindOf) in VisitAttributedType()
1452 return Ctx.getAttributedType(newAttrType->getAttrKind(), in VisitAttributedType()
1773 if (AT->getAttrKind() == AK) in hasAttr()
3506 switch (getAttrKind()) { in isQualifier()
3530 switch (getAttrKind()) { in isMSTypeSpec()
3543 switch (getAttrKind()) { in isCallingConv()
4157 if (getAttrKind() == attr::TypeNonNull) in getImmediateNullability()
4159 if (getAttrKind() == attr::TypeNullable) in getImmediateNullability()
4161 if (getAttrKind() == attr::TypeNullUnspecified) in getImmediateNullability()
[all …]
DODRHash.cpp821 ID.AddInteger(T->getAttrKind()); in VisitAttributedType()
DASTContext.cpp3045 AT->getAttrKind(), in getFunctionTypeWithExceptionSpec()
8620 if (Attr->getAttrKind() == attr::ObjCOwnership) in hasDirectOwnershipQualifier()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DCheckerHelpers.cpp106 if (AttrType->getAttrKind() == attr::TypeNullable) in getNullabilityAnnotation()
108 else if (AttrType->getAttrKind() == attr::TypeNonNull) in getNullabilityAnnotation()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DNonnullGlobalConstantsChecker.cpp120 if (AT->getAttrKind() == attr::TypeNonNull) in isGlobalConstString()
/external/llvm-project/clang/lib/Basic/
DAttributes.cpp103 return ::getAttrKind(normalizeName(Name, ScopeName, SyntaxUsed), SyntaxUsed); in getParsedKind()
/external/clang/include/clang/AST/
DTypeLoc.h729 AttributedType::Kind getAttrKind() const { in getAttrKind() function
730 return getTypePtr()->getAttrKind(); in getAttrKind()
734 return (getAttrKind() >= AttributedType::FirstExprOperandKind && in hasAttrExprOperand()
735 getAttrKind() <= AttributedType::LastExprOperandKind); in hasAttrExprOperand()
739 return (getAttrKind() >= AttributedType::FirstEnumOperandKind && in hasAttrEnumOperand()
740 getAttrKind() <= AttributedType::LastEnumOperandKind); in hasAttrEnumOperand()
DType.h3830 Kind getAttrKind() const {
3891 Profile(ID, getAttrKind(), ModifiedType, EquivalentType);
/external/clang/lib/Sema/
DAttributeList.cpp142 return ::getAttrKind(FullName, SyntaxUsed); in getKind()
DSemaType.cpp4787 AttributeList::Kind parsedKind = getAttrListKind(TL.getAttrKind()); in fillAttributedTypeLoc()
5343 if (attr->getAttrKind() == AttributedType::attr_objc_ownership) in hasDirectOwnershipQualifier()
5754 AttributedType::Kind CurAttrKind = AT->getAttrKind(); in handleMSPointerTypeQualifierAttr()
6188 if (AT && AT->getAttrKind() != CCAttrKind) { in handleFunctionTypeAttr()
/external/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h80 static attr::Kind getAttrKind(llvm::StringRef AttrKind) {
89 getAttrKind(Value.getString()) != attr::Kind(-1);
92 return getAttrKind(Value.getString());
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h163 static Optional<attr::Kind> getAttrKind(llvm::StringRef AttrKind) {
175 return getAttrKind(Value.getString()).hasValue();
179 return *getAttrKind(Value.getString());
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp84 if (TL.getAttrKind() != AttributedType::attr_objc_ownership) in handleAttr()
DTransforms.cpp367 if (AttrT->getAttrKind() == AttributedType::attr_objc_ownership) in isGCOwnedNonObjC()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DAttributor.h1646 if (isa<UndefValue>(IRP.getAssociatedValue()) || hasAttr(getAttrKind())) {
1674 Attribute::AttrKind getAttrKind() const { return AK; }
1679 Attrs.emplace_back(Attribute::get(Ctx, getAttrKind()));
/external/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp352 if (AttrType->getAttrKind() == AttributedType::attr_nullable) in getNullabilityAnnotation()
354 else if (AttrType->getAttrKind() == AttributedType::attr_nonnull) in getNullabilityAnnotation()
/external/llvm-project/clang/lib/ARCMigrate/
DTransforms.cpp363 if (AttrT->getAttrKind() == attr::ObjCOwnership) in isGCOwnedNonObjC()
/external/llvm-project/llvm/include/llvm/Transforms/IPO/
DAttributor.h2183 this->hasAttr(getAttrKind(), /* IgnoreSubsumingPositions */ false,
2213 Attribute::AttrKind getAttrKind() const { return AK; }
2218 Attrs.emplace_back(Attribute::get(Ctx, getAttrKind()));
/external/llvm-project/clang/include/clang/AST/
DTypeLoc.h856 attr::Kind getAttrKind() const { in getAttrKind() function
857 return getTypePtr()->getAttrKind(); in getAttrKind()
DTypeProperties.td597 let Read = [{ node->getAttrKind() }];
DType.h4676 Kind getAttrKind() const {
4740 Profile(ID, getAttrKind(), ModifiedType, EquivalentType);

12