/minix/external/bsd/llvm/dist/clang/test/SemaCXX/ |
H A D | addr-of-overloaded-function.cpp | 209 struct Qualifiers { struct 222 void (Qualifiers::*X)(); in QualifierTest() 223 …X = &Qualifiers::C; // expected-error-re {{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() argument 224 …X = &Qualifiers::V; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attribu… in QualifierTest() 225 …X = &Qualifiers::R; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attribu… in QualifierTest() 226 …X = &Qualifiers::CV; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() 227 …X = &Qualifiers::CR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() 228 …X = &Qualifiers::VR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() 229 …X = &Qualifiers::CVR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attri… in QualifierTest() 236 …void (Qualifiers::*X)() = &Dummy::N; // expected-error-re{{cannot initialize a variable of type 'v…
|
/minix/external/bsd/llvm/dist/clang/lib/CodeGen/ |
H A D | CGValue.h | 133 Qualifiers Quals; 170 void Initialize(QualType Type, Qualifiers Quals, 206 Qualifiers::ObjCLifetime getObjCLifetime() const { in getObjCLifetime() 233 return Quals.getObjCGCAttr() == Qualifiers::Weak; in isObjCWeak() 255 const Qualifiers &getQuals() const { return Quals; } in getQuals() 256 Qualifiers &getQuals() { return Quals; } in getQuals() 297 Qualifiers qs = type.getQualifiers(); 366 Qualifiers Quals; 423 Qualifiers quals, 455 Qualifiers getQualifiers() const { return Quals; } in getQualifiers() [all …]
|
H A D | CGDecl.cpp | 529 case Qualifiers::OCL_None: in EmitAutoVarWithLifetime() 532 case Qualifiers::OCL_ExplicitNone: in EmitAutoVarWithLifetime() 536 case Qualifiers::OCL_Strong: { in EmitAutoVarWithLifetime() 551 case Qualifiers::OCL_Weak: in EmitAutoVarWithLifetime() 657 case Qualifiers::OCL_None: in EmitScalarInit() 660 case Qualifiers::OCL_ExplicitNone: in EmitScalarInit() 665 case Qualifiers::OCL_Strong: { in EmitScalarInit() 670 case Qualifiers::OCL_Weak: { in EmitScalarInit() 711 case Qualifiers::OCL_None: in EmitScalarInit() 718 case Qualifiers::OCL_Strong: in EmitScalarInit() [all …]
|
H A D | CGBlocks.cpp | 194 Qualifiers::ObjCLifetime Lifetime; 408 Qualifiers::ObjCLifetime lifetime = in computeBlockInfo() 413 case Qualifiers::OCL_ExplicitNone: in computeBlockInfo() 417 case Qualifiers::OCL_Strong: in computeBlockInfo() 418 case Qualifiers::OCL_Weak: in computeBlockInfo() 1958 case Qualifiers::OCL_Weak: { in buildByrefHelpers() 1964 case Qualifiers::OCL_Strong: in buildByrefHelpers() 2062 Qualifiers::ObjCLifetime Lifetime; in BuildByRefType() 2160 case Qualifiers::OCL_Strong: in emitByrefStructureInit() 2163 case Qualifiers::OCL_Weak: in emitByrefStructureInit() [all …]
|
H A D | CGObjCRuntime.cpp | 262 case Qualifiers::OCL_Strong: in EmitTryCatchStmt() 266 case Qualifiers::OCL_None: in EmitTryCatchStmt() 267 case Qualifiers::OCL_ExplicitNone: in EmitTryCatchStmt() 268 case Qualifiers::OCL_Autoreleasing: in EmitTryCatchStmt() 272 case Qualifiers::OCL_Weak: in EmitTryCatchStmt()
|
H A D | CGExpr.cpp | 191 case Qualifiers::OCL_None: in pushTemporaryCleanup() 200 case Qualifiers::OCL_Strong: in pushTemporaryCleanup() 201 case Qualifiers::OCL_Weak: in pushTemporaryCleanup() 1472 case Qualifiers::OCL_None: in EmitStoreThroughLValue() 1479 case Qualifiers::OCL_Strong: in EmitStoreThroughLValue() 1483 case Qualifiers::OCL_Weak: in EmitStoreThroughLValue() 3104 Qualifiers BaseQuals; in EmitCallExpr() 3119 case Qualifiers::OCL_None: in EmitCallExpr() 3178 case Qualifiers::OCL_None: in EmitBinaryOperatorLValue() 3180 case Qualifiers::OCL_Weak: in EmitBinaryOperatorLValue() [all …]
|
H A D | CGException.cpp | 617 Qualifiers CaughtTypeQuals; in EnterCXXTryStmt() 988 case Qualifiers::OCL_Strong: in InitCatchParam() 992 case Qualifiers::OCL_None: in InitCatchParam() 993 case Qualifiers::OCL_ExplicitNone: in InitCatchParam() 994 case Qualifiers::OCL_Autoreleasing: in InitCatchParam() 998 case Qualifiers::OCL_Weak: in InitCatchParam() 1063 AggValueSlot::forAddr(ParamAddr, Alignment, Qualifiers(), in InitCatchParam()
|
/minix/external/bsd/llvm/dist/clang/include/clang/AST/ |
H A D | Type.h | 113 class Qualifiers { 166 static Qualifiers removeCommonQualifiers(Qualifiers &L, Qualifiers &R) { 176 Qualifiers Q; 203 Qualifiers Qs; 209 Qualifiers Qs; 216 Qualifiers Qs; 461 Qualifiers &operator+=(Qualifiers R) { 468 friend Qualifiers operator+(Qualifiers L, Qualifiers R) { 473 Qualifiers &operator-=(Qualifiers R) { 479 friend Qualifiers operator-(Qualifiers L, Qualifiers R) { [all …]
|
H A D | ASTContext.h | 903 return T.withFastQualifiers(Qualifiers::Restrict); in getRestrictType() 912 return T.withFastQualifiers(Qualifiers::Volatile); in getVolatileType() 998 Qualifiers::ObjCLifetime &Lifetime, 1523 return getQualifiedType(T, Qualifiers::fromCVRMask(CVR)); in getCVRQualifiedType() 1532 QualType getQualifiedType(QualType T, Qualifiers Qs) const { in getQualifiedType() 1552 assert(type.getObjCLifetime() == Qualifiers::OCL_None); in getLifetimeQualifiedType() 1553 assert(lifetime != Qualifiers::OCL_None); in getLifetimeQualifiedType() 1555 Qualifiers qs; in getLifetimeQualifiedType() 1566 Qualifiers Qs = type.getQualifiers(); in getUnqualifiedObjCPointerType() 1616 Qualifiers::GC getObjCGCAttrKind(QualType Ty) const; [all …]
|
/minix/external/bsd/llvm/dist/clang/lib/AST/ |
H A D | TypePrinter.cpp | 115 if (TypeQuals & Qualifiers::Const) { in AppendTypeQualList() 119 if (TypeQuals & Qualifiers::Volatile) { in AppendTypeQualList() 124 if (TypeQuals & Qualifiers::Restrict) { in AppendTypeQualList() 235 Qualifiers Quals = Split.Quals; in printBefore() 1227 case Qualifiers::OCL_Weak: OS << "weak"; break; in printAttributedAfter() 1435 std::string Qualifiers::getAsString() const { in getAsString() 1502 if (Qualifiers::GC gc = getObjCGCAttr()) { in print() 1506 if (gc == Qualifiers::Weak) in print() 1521 case Qualifiers::OCL_Strong: in print() 1526 case Qualifiers::OCL_Weak: OS << "__weak"; break; in print() [all …]
|
H A D | Type.cpp | 31 bool Qualifiers::isStrictSupersetOf(Qualifiers Other) const { in isStrictSupersetOf() 986 case Qualifiers::OCL_Weak: in isCXX98PODType() 990 case Qualifiers::OCL_None: in isCXX98PODType() 1048 case Qualifiers::OCL_Weak: in isTrivialType() 1052 case Qualifiers::OCL_None: in isTrivialType() 1100 case Qualifiers::OCL_Weak: in isTriviallyCopyableType() 1104 case Qualifiers::OCL_None: in isTriviallyCopyableType() 1261 case Qualifiers::OCL_Weak: in isCXX11PODType() 1265 case Qualifiers::OCL_None: in isCXX11PODType() 2443 case Qualifiers::OCL_None: in isDestructedTypeImpl() [all …]
|
H A D | ASTDiagnostic.cpp | 479 Qualifiers FromQual, ToQual; 558 void SetNode(Qualifiers FromQual, Qualifiers ToQual) { in SetNode() 661 void GetNode(Qualifiers &FromQual, Qualifiers &ToQual) { in GetNode() 908 Qualifiers FromQual = FromType.getQualifiers(), in DiffTypes() 1434 Qualifiers FromQual, ToQual; in TreeToString() 1505 Qualifiers FromQual = FromType.getLocalQualifiers(), in PrintTypeNames() 1735 void PrintQualifiers(Qualifiers FromQual, Qualifiers ToQual) { in PrintQualifiers() 1747 Qualifiers CommonQual = Qualifiers::removeCommonQualifiers(FromQual, in PrintQualifiers() 1788 void PrintQualifier(Qualifiers Q, bool ApplyBold, in PrintQualifier() 1815 Qualifiers FromQual = FromType.getQualifiers(), in DiffTemplate()
|
H A D | MicrosoftMangle.cpp | 247 void mangleQualifiers(Qualifiers Quals, bool IsMember); 249 void manglePointerCVQualifiers(Qualifiers Quals); 250 void manglePointerExtQualifiers(Qualifiers Quals, const Type *PointeeType); 1201 void MicrosoftCXXNameMangler::mangleQualifiers(Qualifiers Quals, in mangleQualifiers() 1302 MicrosoftCXXNameMangler::manglePointerExtQualifiers(Qualifiers Quals, in manglePointerExtQualifiers() 1312 void MicrosoftCXXNameMangler::manglePointerCVQualifiers(Qualifiers Quals) { in manglePointerCVQualifiers() 1378 Qualifiers Quals = T.getLocalQualifiers(); in mangleType() 1567 Qualifiers Quals = Qualifiers::fromCVRMask(Proto->getTypeQuals()); in mangleFunctionType() 1881 manglePointerExtQualifiers(Qualifiers(), T->getPointeeType().getTypePtr()); in mangleType() 1891 manglePointerExtQualifiers(Qualifiers(), T->getPointeeType().getTypePtr()); in mangleType() [all …]
|
H A D | ASTContext.cpp | 4279 Qualifiers qs = split.Quals; in getAsArrayType() 4353 Qualifiers qs; in getBaseElementType() 4577 return Qualifiers::OCL_None; in getInnerObjCOwnership() 4791 case Qualifiers::OCL_Weak: in BlockRequiresCopying() 4793 case Qualifiers::OCL_Strong: in BlockRequiresCopying() 6420 return Qualifiers::GCNone; in getObjCGCAttrKind() 6430 return Qualifiers::Strong; in getObjCGCAttrKind() 7138 if (GC_L == Qualifiers::Weak || GC_R == Qualifiers::Weak) in mergeTypes() 7438 if (GC_L == Qualifiers::Weak || GC_R == Qualifiers::Weak) in mergeObjCGCQualifiers() 7441 if (GC_L == Qualifiers::Strong) in mergeObjCGCQualifiers() [all …]
|
H A D | ItaniumMangle.cpp | 354 void mangleQualifiers(Qualifiers Quals); 1248 Qualifiers MethodQuals = in mangleNestedName() 1731 void CXXNameMangler::mangleQualifiers(Qualifiers Quals) { in mangleQualifiers() 1777 case Qualifiers::OCL_None: in mangleQualifiers() 1780 case Qualifiers::OCL_Weak: in mangleQualifiers() 1784 case Qualifiers::OCL_Strong: in mangleQualifiers() 1788 case Qualifiers::OCL_Autoreleasing: in mangleQualifiers() 1792 case Qualifiers::OCL_ExplicitNone: in mangleQualifiers() 1878 Qualifiers quals = split.Quals; in mangleType() 1889 quals = Qualifiers(); in mangleType() [all …]
|
/minix/external/bsd/llvm/dist/clang/lib/Sema/ |
H A D | SemaObjCProperty.cpp | 46 return Qualifiers::OCL_Strong; in getImpliedARCOwnership() 48 return Qualifiers::OCL_Weak; in getImpliedARCOwnership() 50 return Qualifiers::OCL_ExplicitNone; in getImpliedARCOwnership() 57 return Qualifiers::OCL_ExplicitNone; in getImpliedARCOwnership() 60 return Qualifiers::OCL_None; in getImpliedARCOwnership() 681 case Qualifiers::OCL_Strong: in checkARCPropertyImpl() 688 case Qualifiers::OCL_Weak: in checkARCPropertyImpl() 694 case Qualifiers::OCL_ExplicitNone: in checkARCPropertyImpl() 702 case Qualifiers::OCL_Autoreleasing: in checkARCPropertyImpl() 705 case Qualifiers::OCL_None: in checkARCPropertyImpl() [all …]
|
H A D | SemaType.cpp | 1273 Qualifiers::ObjCLifetime implicitLifetime = Qualifiers::OCL_None; in inferARCLifetimeForPointee() 1311 Qualifiers qs; in inferARCLifetimeForPointee() 1957 Qualifiers qs; in inferARCWriteback() 3282 Qualifiers qs; in transferARCOwnershipToDeclSpec() 3966 max = Qualifiers::MaxAddressSpace; in HandleAddressSpaceTypeAttribute() 4073 Qualifiers::ObjCLifetime lifetime; in handleObjCOwnershipTypeAttr() 4079 lifetime = Qualifiers::OCL_Weak; in handleObjCOwnershipTypeAttr() 4118 case Qualifiers::OCL_None: in handleObjCOwnershipTypeAttr() 4203 Qualifiers::GC GCAttr; in handleObjCGCTypeAttr() 4213 GCAttr = Qualifiers::Weak; in handleObjCGCTypeAttr() [all …]
|
H A D | SemaOverload.cpp | 1039 NewQuals |= Qualifiers::Const; in IsOverload() 1042 OldQuals &= ~Qualifiers::Restrict; in IsOverload() 1043 NewQuals &= ~Qualifiers::Restrict; in IsOverload() 2104 Qualifiers TQs = T.getQualifiers(); in AdoptQualifiers() 3371 Qualifiers Quals; in hasSimilarType() 3577 Qualifiers T1Quals, T2Quals; in CompareStandardConversionSequences() 3647 Qualifiers T1Quals, T2Quals; in CompareQualificationConversions() 3962 Qualifiers T1Quals, T2Quals; in CompareReferenceRelationship() 4694 Qualifiers::Const | Qualifiers::Volatile : Method->getTypeQualifiers(); in TryObjectArgumentInitialization() 6938 Qualifiers VRQuals; in CollectVRQualifiers() [all …]
|
H A D | SemaTemplateDeduction.cpp | 113 DeductionQualifierComparison Qualifiers; member 896 Qualifiers ParamQs = ParamType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf() 897 Qualifiers ArgQs = ArgType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf() 1024 Comparison.Qualifiers = NeitherMoreQualified; in DeduceTemplateArgumentsByTypeMatch() 1027 Qualifiers ArgQuals = Arg.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 1031 Comparison.Qualifiers = ArgMoreQualified; in DeduceTemplateArgumentsByTypeMatch() 1060 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() 1110 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() 1135 Qualifiers ParamQs = Param.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 2704 Qualifiers AQuals = A.getQualifiers(); in CheckOriginalCallArgDeduction() [all …]
|
H A D | SemaLookup.cpp | 2597 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingConstructor() 2601 Quals & Qualifiers::Volatile, false, false, false); in LookupCopyingConstructor() 2637 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 2639 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 2643 Quals & Qualifiers::Volatile, RValueThis, in LookupCopyingAssignment() 2644 ThisQuals & Qualifiers::Const, in LookupCopyingAssignment() 2645 ThisQuals & Qualifiers::Volatile); in LookupCopyingAssignment() 2655 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupMovingAssignment() 2659 Quals & Qualifiers::Volatile, RValueThis, in LookupMovingAssignment() 2660 ThisQuals & Qualifiers::Const, in LookupMovingAssignment() [all …]
|
H A D | SemaCast.cpp | 463 Qualifiers *CastAwayQualifiers = nullptr) { in CastsAwayConstness() 483 SmallVector<Qualifiers, 8> cv1, cv2; in CastsAwayConstness() 492 Qualifiers SrcQuals, DestQuals; in CastsAwayConstness() 496 Qualifiers RetainedSrcQuals, RetainedDestQuals; in CastsAwayConstness() 527 for (SmallVectorImpl<Qualifiers>::reverse_iterator i1 = cv1.rbegin(), in CastsAwayConstness() 1050 Qualifiers DestPointeeQuals = DestPointee.getQualifiers(); in TryStaticCast() 1051 Qualifiers SrcPointeeQuals = SrcPointee.getQualifiers(); in TryStaticCast() 1590 Qualifiers SrcQuals, DestQuals; in TryConstCast() 2354 Qualifiers CastQuals = CastPtr->getPointeeType().getQualifiers(); in CheckCStyleCast() 2355 Qualifiers ExprQuals = ExprPtr->getPointeeType().getQualifiers(); in CheckCStyleCast() [all …]
|
/minix/external/bsd/llvm/dist/clang/lib/ARCMigrate/ |
H A D | TransProperties.cpp | 247 I->IvarD->getType().getObjCLifetime() != Qualifiers::OCL_Weak) { in rewriteAssign() 275 I->IvarD->getType().getObjCLifetime() != Qualifiers::OCL_Weak) in maybeAddWeakOrUnsafeUnretainedAttr() 343 != Qualifiers::OCL_Strong) in hasIvarWithExplicitARCOwnership()
|
H A D | TransAPIUses.cpp | 77 if (pointee.getObjCLifetime() > Qualifiers::OCL_ExplicitNone) in VisitObjCMessageExpr()
|
H A D | TransBlockObjCVariable.cpp | 108 return ty.getLocalQualifiers().getObjCLifetime() == Qualifiers::OCL_Strong; in isImplicitStrong()
|
/minix/external/bsd/llvm/dist/clang/include/clang/Serialization/ |
H A D | ASTBitCodes.h | 96 return (Idx << Qualifiers::FastWidth) | FastQuals; in asTypeID() 102 return TypeIdx(ID >> Qualifiers::FastWidth); in fromTypeID()
|