/external/clang/test/SemaCXX/ |
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…
|
/external/clang/lib/CodeGen/ |
D | CGValue.h | 134 Qualifiers Quals; 171 void Initialize(QualType Type, Qualifiers Quals, 202 return Quals.getCVRQualifiers() & ~Qualifiers::Const; in getVRQualifiers() 207 Qualifiers::ObjCLifetime getObjCLifetime() const { in getObjCLifetime() 234 return Quals.getObjCGCAttr() == Qualifiers::Weak; in isObjCWeak() 237 return Quals.getObjCGCAttr() == Qualifiers::Strong; in isObjCStrong() 256 const Qualifiers &getQuals() const { return Quals; } in getQuals() 257 Qualifiers &getQuals() { return Quals; } in getQuals() 298 Qualifiers qs = type.getQualifiers(); 368 Qualifiers Quals; [all …]
|
D | CGDecl.cpp | 531 Qualifiers::ObjCLifetime lifetime) { in EmitAutoVarWithLifetime() 533 case Qualifiers::OCL_None: in EmitAutoVarWithLifetime() 536 case Qualifiers::OCL_ExplicitNone: in EmitAutoVarWithLifetime() 540 case Qualifiers::OCL_Strong: { in EmitAutoVarWithLifetime() 551 case Qualifiers::OCL_Autoreleasing: in EmitAutoVarWithLifetime() 555 case Qualifiers::OCL_Weak: in EmitAutoVarWithLifetime() 605 Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime(); in EmitScalarInit() 630 if (lifetime != Qualifiers::OCL_ExplicitNone) in EmitScalarInit() 650 if (lifetime == Qualifiers::OCL_Weak) in EmitScalarInit() 662 case Qualifiers::OCL_None: in EmitScalarInit() [all …]
|
D | CGBlocks.cpp | 194 Qualifiers::ObjCLifetime Lifetime; 199 Qualifiers::ObjCLifetime lifetime, in BlockLayoutChunk() 222 if (left.Lifetime == Qualifiers::OCL_Strong && in operator <() 227 else if (left.Lifetime == Qualifiers::OCL_Weak && in operator <() 232 if (right.Lifetime == Qualifiers::OCL_Strong && in operator <() 237 else if (right.Lifetime == Qualifiers::OCL_Weak && in operator <() 374 Qualifiers::OCL_None, in computeBlockInfo() 395 Qualifiers::OCL_None, &CI, llvmType)); in computeBlockInfo() 408 Qualifiers::ObjCLifetime lifetime = in computeBlockInfo() 412 case Qualifiers::OCL_None: llvm_unreachable("impossible"); in computeBlockInfo() [all …]
|
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()
|
D | CGExpr.cpp | 149 Qualifiers Quals, in EmitAnyExprToMem() 189 switch (Qualifiers::ObjCLifetime Lifetime = in pushTemporaryCleanup() 191 case Qualifiers::OCL_None: in pushTemporaryCleanup() 192 case Qualifiers::OCL_ExplicitNone: in pushTemporaryCleanup() 196 case Qualifiers::OCL_Autoreleasing: in pushTemporaryCleanup() 200 case Qualifiers::OCL_Strong: in pushTemporaryCleanup() 201 case Qualifiers::OCL_Weak: in pushTemporaryCleanup() 216 if (Lifetime == Qualifiers::OCL_Strong) { in pushTemporaryCleanup() 341 M->getType().getObjCLifetime() != Qualifiers::OCL_None && in EmitMaterializeTemporaryExpr() 342 M->getType().getObjCLifetime() != Qualifiers::OCL_ExplicitNone) { in EmitMaterializeTemporaryExpr() [all …]
|
/external/clang/include/clang/AST/ |
D | Type.h | 113 class Qualifiers { 162 Qualifiers() : Mask(0) {} 166 static Qualifiers removeCommonQualifiers(Qualifiers &L, Qualifiers &R) { 169 Qualifiers Q; 176 Qualifiers Q; 202 static Qualifiers fromFastMask(unsigned Mask) { 203 Qualifiers Qs; 208 static Qualifiers fromCVRMask(unsigned CVR) { 209 Qualifiers Qs; 215 static Qualifiers fromOpaqueValue(unsigned opaque) { [all …]
|
D | ASTContext.h | 879 QualType getExtQualType(const Type *Base, Qualifiers Quals) const; 897 QualType getObjCGCQualType(QualType T, Qualifiers::GC gcAttr) const; 905 return T.withFastQualifiers(Qualifiers::Restrict); in getRestrictType() 914 return T.withFastQualifiers(Qualifiers::Volatile); in getVolatileType() 1000 Qualifiers::ObjCLifetime &Lifetime, 1525 return getQualifiedType(T, Qualifiers::fromCVRMask(CVR)); in getCVRQualifiedType() 1534 QualType getQualifiedType(QualType T, Qualifiers Qs) const { in getQualifiedType() 1543 QualType getQualifiedType(const Type *T, Qualifiers Qs) const { in getQualifiedType() 1553 Qualifiers::ObjCLifetime lifetime) { in getLifetimeQualifiedType() 1554 assert(type.getObjCLifetime() == Qualifiers::OCL_None); in getLifetimeQualifiedType() [all …]
|
/external/clang/lib/AST/ |
D | TypePrinter.cpp | 91 void print(const Type *ty, Qualifiers qs, raw_ostream &OS, 99 void printBefore(const Type *ty, Qualifiers qs, raw_ostream &OS); 101 void printAfter(const Type *ty, Qualifiers qs, raw_ostream &OS); 115 if (TypeQuals & Qualifiers::Const) { in AppendTypeQualList() 119 if (TypeQuals & Qualifiers::Volatile) { in AppendTypeQualList() 124 if (TypeQuals & Qualifiers::Restrict) { in AppendTypeQualList() 144 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS, in print() 239 Qualifiers Quals = Split.Quals; in printBefore() 249 void TypePrinter::printBefore(const Type *T,Qualifiers Quals, raw_ostream &OS) { in printBefore() 302 void TypePrinter::printAfter(const Type *T, Qualifiers Quals, raw_ostream &OS) { in printAfter() [all …]
|
D | Type.cpp | 31 bool Qualifiers::isStrictSupersetOf(Qualifiers Other) const { in isStrictSupersetOf() 262 Qualifiers quals = split.Quals; in getSplitUnqualifiedTypeImpl() 975 case Qualifiers::OCL_ExplicitNone: in isCXX98PODType() 978 case Qualifiers::OCL_Strong: in isCXX98PODType() 979 case Qualifiers::OCL_Weak: in isCXX98PODType() 980 case Qualifiers::OCL_Autoreleasing: in isCXX98PODType() 983 case Qualifiers::OCL_None: in isCXX98PODType() 1037 case Qualifiers::OCL_ExplicitNone: in isTrivialType() 1040 case Qualifiers::OCL_Strong: in isTrivialType() 1041 case Qualifiers::OCL_Weak: in isTrivialType() [all …]
|
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()
|
D | ASTContext.cpp | 2026 ASTContext::getExtQualType(const Type *baseType, Qualifiers quals) const { in getExtQualType() 2076 Qualifiers::GC GCAttr) const { in getObjCGCQualType() 2901 (T.getObjCLifetime() == Qualifiers::OCL_None || in isCanonicalResultType() 2902 T.getObjCLifetime() == Qualifiers::OCL_ExplicitNone); in isCanonicalResultType() 2945 Qualifiers Qs = CanResultTy.getQualifiers(); in getFunctionType() 3976 Qualifiers &quals) { in getUnqualifiedArrayType() 4301 Qualifiers qs = split.Quals; in getAsArrayType() 4388 Qualifiers qs; in getBaseElementType() 4598 Qualifiers::ObjCLifetime ASTContext::getInnerObjCOwnership(QualType T) const { in getInnerObjCOwnership() 4600 if (T.getObjCLifetime() != Qualifiers::OCL_None) in getInnerObjCOwnership() [all …]
|
D | MicrosoftMangle.cpp | 275 void mangleQualifiers(Qualifiers Quals, bool IsMember); 277 void manglePointerCVQualifiers(Qualifiers Quals); 278 void manglePointerExtQualifiers(Qualifiers Quals, const Type *PointeeType); 1240 void MicrosoftCXXNameMangler::mangleQualifiers(Qualifiers Quals, in mangleQualifiers() 1341 MicrosoftCXXNameMangler::manglePointerExtQualifiers(Qualifiers Quals, in manglePointerExtQualifiers() 1351 void MicrosoftCXXNameMangler::manglePointerCVQualifiers(Qualifiers Quals) { in manglePointerCVQualifiers() 1417 Qualifiers Quals = T.getLocalQualifiers(); in mangleType() 1616 Qualifiers Quals = Qualifiers::fromCVRMask(Proto->getTypeQuals()); in mangleFunctionType() 1956 manglePointerExtQualifiers(Qualifiers(), T->getPointeeType().getTypePtr()); in mangleType() 1966 manglePointerExtQualifiers(Qualifiers(), T->getPointeeType().getTypePtr()); in mangleType() [all …]
|
D | ItaniumMangle.cpp | 369 void mangleQualifiers(Qualifiers Quals); 1107 Qualifiers MethodQuals = in mangleNestedName() 1108 Qualifiers::fromCVRMask(Method->getTypeQualifiers()); in mangleNestedName() 1766 void CXXNameMangler::mangleQualifiers(Qualifiers Quals) { in mangleQualifiers() 1812 case Qualifiers::OCL_None: in mangleQualifiers() 1815 case Qualifiers::OCL_Weak: in mangleQualifiers() 1819 case Qualifiers::OCL_Strong: in mangleQualifiers() 1823 case Qualifiers::OCL_Autoreleasing: in mangleQualifiers() 1827 case Qualifiers::OCL_ExplicitNone: in mangleQualifiers() 1862 static bool isTypeSubstitutable(Qualifiers Quals, const Type *Ty) { in isTypeSubstitutable() [all …]
|
/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 39 static Qualifiers::ObjCLifetime getImpliedARCOwnership( in getImpliedARCOwnership() 47 return Qualifiers::OCL_Strong; in getImpliedARCOwnership() 49 return Qualifiers::OCL_Weak; in getImpliedARCOwnership() 51 return Qualifiers::OCL_ExplicitNone; in getImpliedARCOwnership() 58 return Qualifiers::OCL_ExplicitNone; in getImpliedARCOwnership() 61 return Qualifiers::OCL_None; in getImpliedARCOwnership() 70 Qualifiers::ObjCLifetime propertyLifetime in checkARCPropertyDecl() 74 if (propertyLifetime == Qualifiers::OCL_None) return; in checkARCPropertyDecl() 76 Qualifiers::ObjCLifetime expectedLifetime in checkARCPropertyDecl() 84 if (propertyLifetime == Qualifiers::OCL_Strong) { in checkARCPropertyDecl() [all …]
|
D | SemaType.cpp | 1209 Qualifiers Qs, const DeclSpec *DS) { in BuildQualifiedType() 1282 return BuildQualifiedType(T, Loc, Qualifiers::fromCVRMask(CVR), DS); in BuildQualifiedType() 1296 type.getObjCLifetime() != Qualifiers::OCL_None) in inferARCLifetimeForPointee() 1299 Qualifiers::ObjCLifetime implicitLifetime = Qualifiers::OCL_None; in inferARCLifetimeForPointee() 1306 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee() 1312 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee() 1333 implicitLifetime = Qualifiers::OCL_Strong; in inferARCLifetimeForPointee() 1337 Qualifiers qs; in inferARCLifetimeForPointee() 1344 Qualifiers::fromCVRMask(FnTy->getTypeQuals()).getAsString(); in getFunctionQualifiersAsString() 1911 Qualifiers::ObjCLifetime ownership, [all …]
|
D | SemaOverload.cpp | 1045 NewQuals |= Qualifiers::Const; in IsOverload() 1048 OldQuals &= ~Qualifiers::Restrict; in IsOverload() 1049 NewQuals &= ~Qualifiers::Restrict; in IsOverload() 1923 Qualifiers Quals = CanonFromPointee.getQualifiers(); in BuildSimilarlyQualifiedPointerType() 2117 static QualType AdoptQualifiers(ASTContext &Context, QualType T, Qualifiers Qs){ in AdoptQualifiers() 2118 Qualifiers TQs = T.getQualifiers(); in AdoptQualifiers() 2140 Qualifiers FromQualifiers = FromType.getQualifiers(); in isObjCPointerConversion() 2342 Qualifiers ToQuals = ToPointee.getQualifiers(); in isObjCWritebackConversion() 2344 ToQuals.getObjCLifetime() != Qualifiers::OCL_Autoreleasing || in isObjCWritebackConversion() 2355 Qualifiers FromQuals = FromPointee.getQualifiers(); in isObjCWritebackConversion() [all …]
|
D | SemaLookup.cpp | 2617 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingConstructor() 2620 LookupSpecialMember(Class, CXXCopyConstructor, Quals & Qualifiers::Const, in LookupCopyingConstructor() 2621 Quals & Qualifiers::Volatile, false, false, false); in LookupCopyingConstructor() 2630 LookupSpecialMember(Class, CXXMoveConstructor, Quals & Qualifiers::Const, in LookupMovingConstructor() 2631 Quals & Qualifiers::Volatile, false, false, false); in LookupMovingConstructor() 2657 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 2659 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 2662 LookupSpecialMember(Class, CXXCopyAssignment, Quals & Qualifiers::Const, in LookupCopyingAssignment() 2663 Quals & Qualifiers::Volatile, RValueThis, in LookupCopyingAssignment() 2664 ThisQuals & Qualifiers::Const, in LookupCopyingAssignment() [all …]
|
D | SemaCast.cpp | 490 Qualifiers *CastAwayQualifiers = nullptr) { in CastsAwayConstness() 510 SmallVector<Qualifiers, 8> cv1, cv2; in CastsAwayConstness() 519 Qualifiers SrcQuals, DestQuals; in CastsAwayConstness() 523 Qualifiers RetainedSrcQuals, RetainedDestQuals; in CastsAwayConstness() 554 for (SmallVectorImpl<Qualifiers>::reverse_iterator i1 = cv1.rbegin(), in CastsAwayConstness() 1069 Qualifiers DestPointeeQuals = DestPointee.getQualifiers(); in TryStaticCast() 1070 Qualifiers SrcPointeeQuals = SrcPointee.getQualifiers(); in TryStaticCast() 1617 Qualifiers SrcQuals, DestQuals; in TryConstCast() 2381 Qualifiers CastQuals = CastPtr->getPointeeType().getQualifiers(); in CheckCStyleCast() 2382 Qualifiers ExprQuals = ExprPtr->getPointeeType().getQualifiers(); in CheckCStyleCast() [all …]
|
D | SemaExprCXX.cpp | 382 Qualifiers Quals; in BuildCXXTypeId() 441 Qualifiers Quals; in BuildCXXTypeId() 1344 AllocType.getObjCLifetime() == Qualifiers::OCL_None && in BuildCXXNew() 1682 if (BaseAllocType.getObjCLifetime() == Qualifiers::OCL_None && in CheckAllocatedType() 3426 case Qualifiers::OCL_None: in EvaluateUnaryTypeTrait() 3427 case Qualifiers::OCL_ExplicitNone: in EvaluateUnaryTypeTrait() 3430 case Qualifiers::OCL_Strong: in EvaluateUnaryTypeTrait() 3431 case Qualifiers::OCL_Weak: in EvaluateUnaryTypeTrait() 3432 case Qualifiers::OCL_Autoreleasing: in EvaluateUnaryTypeTrait() 3582 T.getObjCLifetime() == Qualifiers::OCL_Autoreleasing) in EvaluateUnaryTypeTrait() [all …]
|
D | SemaTemplateDeduction.cpp | 865 Qualifiers ParamQs = ParamType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf() 866 Qualifiers ArgQs = ArgType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf() 995 Qualifiers ParamQuals = Param.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 996 Qualifiers ArgQuals = Arg.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 1001 ArgQuals.getObjCLifetime() == Qualifiers::OCL_ExplicitNone && in DeduceTemplateArgumentsByTypeMatch() 1024 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() 1074 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() 1098 Qualifiers DeducedQs = DeducedType.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 1099 Qualifiers ParamQs = Param.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 1125 DeducedQs.setObjCLifetime(Qualifiers::OCL_Strong); in DeduceTemplateArgumentsByTypeMatch() [all …]
|
/external/clang/lib/ARCMigrate/ |
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()
|
D | TransAPIUses.cpp | 77 if (pointee.getObjCLifetime() > Qualifiers::OCL_ExplicitNone) in VisitObjCMessageExpr()
|
D | TransBlockObjCVariable.cpp | 108 return ty.getLocalQualifiers().getObjCLifetime() == Qualifiers::OCL_Strong; in isImplicitStrong()
|
/external/clang/include/clang/Serialization/ |
D | ASTBitCodes.h | 96 return (Idx << Qualifiers::FastWidth) | FastQuals; in asTypeID() 102 return TypeIdx(ID >> Qualifiers::FastWidth); in fromTypeID()
|