/external/clang/test/SemaCXX/ |
D | addr-of-overloaded-function.cpp | 182 struct Qualifiers { struct 195 void (Qualifiers::*X)(); in QualifierTest() 196 …X = &Qualifiers::C; // expected-error {{assigning to 'void (test1::Qualifiers::*)()' from incompat… in QualifierTest() argument 197 …X = &Qualifiers::V; // expected-error{{assigning to 'void (test1::Qualifiers::*)()' from incompati… in QualifierTest() 198 …X = &Qualifiers::R; // expected-error{{assigning to 'void (test1::Qualifiers::*)()' from incompati… in QualifierTest() 199 …X = &Qualifiers::CV; // expected-error{{assigning to 'void (test1::Qualifiers::*)()' from incompat… in QualifierTest() 200 …X = &Qualifiers::CR; // expected-error{{assigning to 'void (test1::Qualifiers::*)()' from incompat… in QualifierTest() 201 …X = &Qualifiers::VR; // expected-error{{assigning to 'void (test1::Qualifiers::*)()' from incompat… in QualifierTest() 202 …X = &Qualifiers::CVR; // expected-error{{assigning to 'void (test1::Qualifiers::*)()' from incompa… in QualifierTest() 209 …void (Qualifiers::*X)() = &Dummy::N; // expected-error{{cannot initialize a variable of type 'void…
|
/external/clang/lib/CodeGen/ |
D | CGValue.h | 127 Qualifiers Quals; 155 void Initialize(QualType Type, Qualifiers Quals, 180 return Quals.getCVRQualifiers() & ~Qualifiers::Const; in getVRQualifiers() 185 Qualifiers::ObjCLifetime getObjCLifetime() const { in getObjCLifetime() 205 return Quals.getObjCGCAttr() == Qualifiers::Weak; in isObjCWeak() 208 return Quals.getObjCGCAttr() == Qualifiers::Strong; in isObjCStrong() 221 const Qualifiers &getQuals() const { return Quals; } in getQuals() 222 Qualifiers &getQuals() { return Quals; } in getQuals() 260 Qualifiers qs = type.getQualifiers(); 319 Qualifiers Quals; [all …]
|
D | CGDecl.cpp | 450 Qualifiers::ObjCLifetime lifetime) { in EmitAutoVarWithLifetime() 452 case Qualifiers::OCL_None: in EmitAutoVarWithLifetime() 455 case Qualifiers::OCL_ExplicitNone: in EmitAutoVarWithLifetime() 459 case Qualifiers::OCL_Strong: { in EmitAutoVarWithLifetime() 470 case Qualifiers::OCL_Autoreleasing: in EmitAutoVarWithLifetime() 474 case Qualifiers::OCL_Weak: in EmitAutoVarWithLifetime() 519 Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime(); in EmitScalarInit() 541 if (lifetime != Qualifiers::OCL_ExplicitNone) in EmitScalarInit() 560 if (lifetime == Qualifiers::OCL_Weak) in EmitScalarInit() 572 case Qualifiers::OCL_None: in EmitScalarInit() [all …]
|
D | CGObjCRuntime.cpp | 253 case Qualifiers::OCL_Strong: in EmitTryCatchStmt() 257 case Qualifiers::OCL_None: in EmitTryCatchStmt() 258 case Qualifiers::OCL_ExplicitNone: in EmitTryCatchStmt() 259 case Qualifiers::OCL_Autoreleasing: in EmitTryCatchStmt() 263 case Qualifiers::OCL_Weak: in EmitTryCatchStmt()
|
D | CGExpr.cpp | 137 Qualifiers Quals, in EmitAnyExprToMem() 231 (E->getType().getObjCLifetime() == Qualifiers::OCL_Strong || in EmitExprForReferenceBinding() 232 E->getType().getObjCLifetime() == Qualifiers::OCL_Weak || in EmitExprForReferenceBinding() 233 E->getType().getObjCLifetime() == Qualifiers::OCL_Autoreleasing)) in EmitExprForReferenceBinding() 288 case Qualifiers::OCL_None: in EmitExprForReferenceBinding() 289 case Qualifiers::OCL_ExplicitNone: in EmitExprForReferenceBinding() 290 case Qualifiers::OCL_Autoreleasing: in EmitExprForReferenceBinding() 293 case Qualifiers::OCL_Strong: { in EmitExprForReferenceBinding() 304 case Qualifiers::OCL_Weak: in EmitExprForReferenceBinding() 368 Qualifiers(), isDestructed, in EmitExprForReferenceBinding() [all …]
|
D | CGBlocks.cpp | 354 if (Qualifiers::ObjCLifetime lifetime in computeBlockInfo() 357 case Qualifiers::OCL_None: llvm_unreachable("impossible"); in computeBlockInfo() 358 case Qualifiers::OCL_ExplicitNone: in computeBlockInfo() 359 case Qualifiers::OCL_Autoreleasing: in computeBlockInfo() 362 case Qualifiers::OCL_Strong: in computeBlockInfo() 363 case Qualifiers::OCL_Weak: in computeBlockInfo() 736 AggValueSlot::forAddr(blockField, Align, Qualifiers(), in EmitBlockLiteral() 1257 Qualifiers qs = type.getQualifiers(); in GenerateCopyHelperFunction() 1265 if (qs.getObjCLifetime() == Qualifiers::OCL_Weak) in GenerateCopyHelperFunction() 1369 Qualifiers qs = type.getQualifiers(); in GenerateDestroyHelperFunction() [all …]
|
/external/clang/include/clang/AST/ |
D | Type.h | 111 class Qualifiers { 160 Qualifiers() : Mask(0) {} 162 static Qualifiers fromFastMask(unsigned Mask) { 163 Qualifiers Qs; 168 static Qualifiers fromCVRMask(unsigned CVR) { 169 Qualifiers Qs; 175 static Qualifiers fromOpaqueValue(unsigned opaque) { 176 Qualifiers Qs; 235 Qualifiers withoutObjCGCAttr() const { 236 Qualifiers qs = *this; [all …]
|
D | ASTContext.h | 625 QualType getExtQualType(const Type *Base, Qualifiers Quals) const; 640 QualType getObjCGCQualType(QualType T, Qualifiers::GC gcAttr) const; 646 return T.withFastQualifiers(Qualifiers::Restrict); in getRestrictType() 653 return T.withFastQualifiers(Qualifiers::Volatile); in getVolatileType() 1157 return getQualifiedType(T, Qualifiers::fromCVRMask(CVR)); in getCVRQualifiedType() 1166 QualType getQualifiedType(QualType T, Qualifiers Qs) const { in getQualifiedType() 1175 QualType getQualifiedType(const Type *T, Qualifiers Qs) const { in getQualifiedType() 1184 Qualifiers::ObjCLifetime lifetime) { in getLifetimeQualifiedType() 1185 assert(type.getObjCLifetime() == Qualifiers::OCL_None); in getLifetimeQualifiedType() 1186 assert(lifetime != Qualifiers::OCL_None); in getLifetimeQualifiedType() [all …]
|
D | CanonicalType.h | 118 Qualifiers getQualifiers() const { return Stored.getLocalQualifiers(); } in getQualifiers() 521 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(Qualifiers, getIndexTypeQualifiers) 530 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(Qualifiers, getIndexTypeQualifiers) 540 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(Qualifiers, getIndexTypeQualifiers) 549 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(Qualifiers, getIndexTypeQualifiers)
|
/external/clang/lib/AST/ |
D | TypePrinter.cpp | 50 void print(const Type *ty, Qualifiers qs, std::string &buffer); 62 if (TypeQuals & Qualifiers::Const) { in AppendTypeQualList() 66 if (TypeQuals & Qualifiers::Volatile) { in AppendTypeQualList() 70 if (TypeQuals & Qualifiers::Restrict) { in AppendTypeQualList() 81 void TypePrinter::print(const Type *T, Qualifiers Quals, std::string &buffer) { in print() 935 while (tmp.getObjCGCAttr() == Qualifiers::GCNone) { in printAttributed() 952 case Qualifiers::OCL_None: llvm_unreachable("no ownership!"); in printAttributed() 953 case Qualifiers::OCL_ExplicitNone: S += "none"; break; in printAttributed() 954 case Qualifiers::OCL_Strong: S += "strong"; break; in printAttributed() 955 case Qualifiers::OCL_Weak: S += "weak"; break; in printAttributed() [all …]
|
D | Type.cpp | 30 bool Qualifiers::isStrictSupersetOf(Qualifiers Other) const { in isStrictSupersetOf() 249 Qualifiers quals = split.Quals; in getSplitUnqualifiedTypeImpl() 912 case Qualifiers::OCL_ExplicitNone: in isPODType() 915 case Qualifiers::OCL_Strong: in isPODType() 916 case Qualifiers::OCL_Weak: in isPODType() 917 case Qualifiers::OCL_Autoreleasing: in isPODType() 920 case Qualifiers::OCL_None: in isPODType() 974 case Qualifiers::OCL_ExplicitNone: in isTrivialType() 977 case Qualifiers::OCL_Strong: in isTrivialType() 978 case Qualifiers::OCL_Weak: in isTrivialType() [all …]
|
D | DeclCXX.cpp | 326 return getCopyConstructor(Qualifiers::Const) != 0; in hasConstCopyConstructor() 351 const SmallVectorImpl<std::pair<CXXMethodDecl *, Qualifiers> > &Cands) { in GetBestOverloadCandidateSimple() 377 SmallVector<std::pair<CXXMethodDecl *, Qualifiers>, 4> Found; in getCopyConstructor() 388 if (((TypeQuals & Qualifiers::Const) == (FoundTQs & Qualifiers::Const)) || in getCopyConstructor() 389 (!(TypeQuals & Qualifiers::Const) && (FoundTQs & Qualifiers::Const))) in getCopyConstructor() 392 Qualifiers::fromCVRMask(FoundTQs))); in getCopyConstructor() 413 SmallVector<std::pair<CXXMethodDecl *, Qualifiers>, 4> Found; in getCopyAssignmentOperator() 432 Qualifiers Quals; in getCopyAssignmentOperator() 444 Quals = Qualifiers::fromCVRMask(Qualifiers::Const); in getCopyAssignmentOperator() 802 T.getObjCLifetime() != Qualifiers::OCL_ExplicitNone) in addedMember() [all …]
|
D | DumpXML.cpp | 890 Qualifiers Qs = T.getLocalQualifiers(); in dispatch() 897 case Qualifiers::Weak: set("gc", "weak"); break; in dispatch() 898 case Qualifiers::Strong: set("gc", "strong"); break; in dispatch() 899 case Qualifiers::GCNone: llvm_unreachable("explicit none"); in dispatch() 976 setFlag("const", T->getTypeQuals() & Qualifiers::Const); in visitFunctionProtoTypeAttrs() 977 setFlag("volatile", T->getTypeQuals() & Qualifiers::Volatile); in visitFunctionProtoTypeAttrs() 978 setFlag("restrict", T->getTypeQuals() & Qualifiers::Restrict); in visitFunctionProtoTypeAttrs()
|
D | ASTContext.cpp | 1385 ASTContext::getExtQualType(const Type *baseType, Qualifiers quals) const { in getExtQualType() 1435 Qualifiers::GC GCAttr) const { in getObjCGCQualType() 3115 Qualifiers &quals) { in getUnqualifiedArrayType() 3437 Qualifiers qs = split.Quals; in getAsArrayType() 3524 Qualifiers qs; in getBaseElementType() 3717 Qualifiers::ObjCLifetime ASTContext::getInnerObjCOwnership(QualType T) const { in getInnerObjCOwnership() 3719 if (T.getObjCLifetime() != Qualifiers::OCL_None) in getInnerObjCOwnership() 3731 return Qualifiers::OCL_None; in getInnerObjCOwnership() 5127 Qualifiers::GC ASTContext::getObjCGCAttrKind(QualType Ty) const { in getObjCGCAttrKind() 5129 return Qualifiers::GCNone; in getObjCGCAttrKind() [all …]
|
D | ItaniumMangle.cpp | 318 void mangleQualifiers(Qualifiers Quals); 1226 mangleQualifiers(Qualifiers::fromCVRMask(Method->getTypeQualifiers())); in mangleNestedName() 1662 void CXXNameMangler::mangleQualifiers(Qualifiers Quals) { in mangleQualifiers() 1690 case Qualifiers::OCL_None: in mangleQualifiers() 1693 case Qualifiers::OCL_Weak: in mangleQualifiers() 1697 case Qualifiers::OCL_Strong: in mangleQualifiers() 1701 case Qualifiers::OCL_Autoreleasing: in mangleQualifiers() 1705 case Qualifiers::OCL_ExplicitNone: in mangleQualifiers() 1779 Qualifiers quals = split.Quals; in mangleType() 1790 quals = Qualifiers(); in mangleType() [all …]
|
/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 36 static Qualifiers::ObjCLifetime getImpliedARCOwnership( in getImpliedARCOwnership() 46 return Qualifiers::OCL_Weak; in getImpliedARCOwnership() 48 return Qualifiers::OCL_ExplicitNone; in getImpliedARCOwnership() 55 return Qualifiers::OCL_ExplicitNone; in getImpliedARCOwnership() 58 return Qualifiers::OCL_None; in getImpliedARCOwnership() 67 Qualifiers::ObjCLifetime propertyLifetime in checkARCPropertyDecl() 71 if (propertyLifetime == Qualifiers::OCL_None) return; in checkARCPropertyDecl() 73 Qualifiers::ObjCLifetime expectedLifetime in checkARCPropertyDecl() 81 if (propertyLifetime == Qualifiers::OCL_Strong) { in checkARCPropertyDecl() 83 } else if (propertyLifetime == Qualifiers::OCL_Weak) { in checkARCPropertyDecl() [all …]
|
D | SemaType.cpp | 1002 Qualifiers Quals = Qualifiers::fromCVRMask(TypeQuals); in ConvertDeclSpecToType() 1017 Qualifiers Qs) { in BuildQualifiedType() 1066 type.getObjCLifetime() != Qualifiers::OCL_None) in inferARCLifetimeForPointee() 1069 Qualifiers::ObjCLifetime implicitLifetime = Qualifiers::OCL_None; in inferARCLifetimeForPointee() 1076 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee() 1082 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee() 1103 implicitLifetime = Qualifiers::OCL_Strong; in inferARCLifetimeForPointee() 1107 Qualifiers qs; in inferARCLifetimeForPointee() 1624 Qualifiers::ObjCLifetime ownership, 1690 Qualifiers qs; in inferARCWriteback() [all …]
|
D | JumpDiagnostics.cpp | 140 case Qualifiers::OCL_None: in GetDiagForGotoScopeDecl() 141 case Qualifiers::OCL_ExplicitNone: in GetDiagForGotoScopeDecl() 142 case Qualifiers::OCL_Autoreleasing: in GetDiagForGotoScopeDecl() 145 case Qualifiers::OCL_Strong: in GetDiagForGotoScopeDecl() 146 case Qualifiers::OCL_Weak: in GetDiagForGotoScopeDecl()
|
D | SemaLookup.cpp | 2447 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingConstructor() 2450 LookupSpecialMember(Class, CXXCopyConstructor, Quals & Qualifiers::Const, in LookupCopyingConstructor() 2451 Quals & Qualifiers::Volatile, false, false, false); in LookupCopyingConstructor() 2490 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 2492 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 2495 LookupSpecialMember(Class, CXXCopyAssignment, Quals & Qualifiers::Const, in LookupCopyingAssignment() 2496 Quals & Qualifiers::Volatile, RValueThis, in LookupCopyingAssignment() 2497 ThisQuals & Qualifiers::Const, in LookupCopyingAssignment() 2498 ThisQuals & Qualifiers::Volatile); in LookupCopyingAssignment() 2510 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupMovingAssignment() [all …]
|
D | SemaOverload.cpp | 1816 Qualifiers Quals = CanonFromPointee.getQualifiers(); in BuildSimilarlyQualifiedPointerType() 2010 static QualType AdoptQualifiers(ASTContext &Context, QualType T, Qualifiers Qs){ in AdoptQualifiers() 2011 Qualifiers TQs = T.getQualifiers(); in AdoptQualifiers() 2033 Qualifiers FromQualifiers = FromType.getQualifiers(); in isObjCPointerConversion() 2235 Qualifiers ToQuals = ToPointee.getQualifiers(); in isObjCWritebackConversion() 2237 ToQuals.getObjCLifetime() != Qualifiers::OCL_Autoreleasing || in isObjCWritebackConversion() 2248 Qualifiers FromQuals = FromPointee.getQualifiers(); in isObjCWritebackConversion() 2250 (FromQuals.getObjCLifetime() != Qualifiers::OCL_Strong && in isObjCWritebackConversion() 2251 FromQuals.getObjCLifetime() != Qualifiers::OCL_Weak)) in isObjCWritebackConversion() 2255 FromQuals.setObjCLifetime(Qualifiers::OCL_Autoreleasing); in isObjCWritebackConversion() [all …]
|
D | SemaCast.cpp | 481 SmallVector<Qualifiers, 8> cv1, cv2; in CastsAwayConstness() 488 Qualifiers SrcQuals, DestQuals; in CastsAwayConstness() 492 Qualifiers RetainedSrcQuals, RetainedDestQuals; in CastsAwayConstness() 513 for (SmallVector<Qualifiers, 8>::reverse_iterator i1 = cv1.rbegin(), in CastsAwayConstness() 911 Qualifiers DestPointeeQuals = DestPointee.getQualifiers(); in TryStaticCast() 912 Qualifiers SrcPointeeQuals = SrcPointee.getQualifiers(); in TryStaticCast() 1402 Qualifiers SrcQuals, DestQuals; in TryConstCast() 2043 Qualifiers CastQuals = CastPtr->getPointeeType().getQualifiers(); in CheckCStyleCast() 2044 Qualifiers ExprQuals = ExprPtr->getPointeeType().getQualifiers(); in CheckCStyleCast()
|
D | SemaTemplateDeduction.cpp | 109 DeductionQualifierComparison Qualifiers; member 807 Qualifiers ParamQs = ParamType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf() 808 Qualifiers ArgQs = ArgType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf() 909 Comparison.Qualifiers = NeitherMoreQualified; in DeduceTemplateArgumentsByTypeMatch() 911 Qualifiers ParamQuals = Param.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 912 Qualifiers ArgQuals = Arg.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 914 Comparison.Qualifiers = ParamMoreQualified; in DeduceTemplateArgumentsByTypeMatch() 916 Comparison.Qualifiers = ArgMoreQualified; in DeduceTemplateArgumentsByTypeMatch() 934 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() 984 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransProperties.cpp | 248 I->IvarD->getType().getObjCLifetime() != Qualifiers::OCL_Weak) { in rewriteAssign() 274 I->IvarD->getType().getObjCLifetime() != Qualifiers::OCL_Weak) in maybeAddWeakOrUnsafeUnretainedAttr() 349 != Qualifiers::OCL_Strong) in hasIvarWithExplicitARCOwnership()
|
D | TransAPIUses.cpp | 77 if (pointee.getObjCLifetime() > Qualifiers::OCL_ExplicitNone) { in VisitObjCMessageExpr()
|
/external/clang/include/clang/Serialization/ |
D | ASTBitCodes.h | 96 return (Idx << Qualifiers::FastWidth) | FastQuals; in asTypeID() 102 return TypeIdx(ID >> Qualifiers::FastWidth); in fromTypeID()
|