/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 | 133 Qualifiers Quals; 170 void Initialize(QualType Type, Qualifiers Quals, 201 return Quals.getCVRQualifiers() & ~Qualifiers::Const; in getVRQualifiers() 206 Qualifiers::ObjCLifetime getObjCLifetime() const { in getObjCLifetime() 233 return Quals.getObjCGCAttr() == Qualifiers::Weak; in isObjCWeak() 236 return Quals.getObjCGCAttr() == Qualifiers::Strong; in isObjCStrong() 255 const Qualifiers &getQuals() const { return Quals; } in getQuals() 256 Qualifiers &getQuals() { return Quals; } in getQuals() 297 Qualifiers qs = type.getQualifiers(); 366 Qualifiers Quals; [all …]
|
D | CGDecl.cpp | 493 Qualifiers::ObjCLifetime lifetime) { in EmitAutoVarWithLifetime() 495 case Qualifiers::OCL_None: in EmitAutoVarWithLifetime() 498 case Qualifiers::OCL_ExplicitNone: in EmitAutoVarWithLifetime() 502 case Qualifiers::OCL_Strong: { in EmitAutoVarWithLifetime() 513 case Qualifiers::OCL_Autoreleasing: in EmitAutoVarWithLifetime() 517 case Qualifiers::OCL_Weak: in EmitAutoVarWithLifetime() 569 Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime(); in EmitScalarInit() 594 if (lifetime != Qualifiers::OCL_ExplicitNone) in EmitScalarInit() 613 if (lifetime == Qualifiers::OCL_Weak) in EmitScalarInit() 625 case Qualifiers::OCL_None: in EmitScalarInit() [all …]
|
D | CGBlocks.cpp | 188 Qualifiers::ObjCLifetime Lifetime; 193 Qualifiers::ObjCLifetime lifetime, in BlockLayoutChunk() 216 if (left.Lifetime == Qualifiers::OCL_Strong && in operator <() 221 else if (left.Lifetime == Qualifiers::OCL_Weak && in operator <() 226 if (right.Lifetime == Qualifiers::OCL_Strong && in operator <() 231 else if (right.Lifetime == Qualifiers::OCL_Weak && in operator <() 368 Qualifiers::OCL_None, in computeBlockInfo() 389 Qualifiers::OCL_None, &CI, llvmType)); in computeBlockInfo() 402 Qualifiers::ObjCLifetime lifetime = in computeBlockInfo() 406 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 | 147 Qualifiers Quals, in EmitAnyExprToMem() 187 switch (Qualifiers::ObjCLifetime Lifetime = in pushTemporaryCleanup() 189 case Qualifiers::OCL_None: in pushTemporaryCleanup() 190 case Qualifiers::OCL_ExplicitNone: in pushTemporaryCleanup() 194 case Qualifiers::OCL_Autoreleasing: in pushTemporaryCleanup() 198 case Qualifiers::OCL_Strong: in pushTemporaryCleanup() 199 case Qualifiers::OCL_Weak: in pushTemporaryCleanup() 215 if (Lifetime == Qualifiers::OCL_Strong) { in pushTemporaryCleanup() 321 M->getType().getObjCLifetime() != Qualifiers::OCL_None && in EmitMaterializeTemporaryExpr() 322 M->getType().getObjCLifetime() != Qualifiers::OCL_ExplicitNone) { in EmitMaterializeTemporaryExpr() [all …]
|
/external/clang/include/clang/AST/ |
D | Type.h | 112 class Qualifiers { 161 Qualifiers() : Mask(0) {} 165 static Qualifiers removeCommonQualifiers(Qualifiers &L, Qualifiers &R) { 168 Qualifiers Q; 175 Qualifiers Q; 201 static Qualifiers fromFastMask(unsigned Mask) { 202 Qualifiers Qs; 207 static Qualifiers fromCVRMask(unsigned CVR) { 208 Qualifiers Qs; 214 static Qualifiers fromOpaqueValue(unsigned opaque) { [all …]
|
D | ASTContext.h | 861 QualType getExtQualType(const Type *Base, Qualifiers Quals) const; 879 QualType getObjCGCQualType(QualType T, Qualifiers::GC gcAttr) const; 887 return T.withFastQualifiers(Qualifiers::Restrict); in getRestrictType() 896 return T.withFastQualifiers(Qualifiers::Volatile); in getVolatileType() 976 Qualifiers::ObjCLifetime &Lifetime, 1500 return getQualifiedType(T, Qualifiers::fromCVRMask(CVR)); in getCVRQualifiedType() 1509 QualType getQualifiedType(QualType T, Qualifiers Qs) const { in getQualifiedType() 1518 QualType getQualifiedType(const Type *T, Qualifiers Qs) const { in getQualifiedType() 1528 Qualifiers::ObjCLifetime lifetime) { in getLifetimeQualifiedType() 1529 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() 140 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS, in print() 235 Qualifiers Quals = Split.Quals; in printBefore() 245 void TypePrinter::printBefore(const Type *T,Qualifiers Quals, raw_ostream &OS) { in printBefore() 298 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() 270 Qualifiers quals = split.Quals; in getSplitUnqualifiedTypeImpl() 978 case Qualifiers::OCL_ExplicitNone: in isCXX98PODType() 981 case Qualifiers::OCL_Strong: in isCXX98PODType() 982 case Qualifiers::OCL_Weak: in isCXX98PODType() 983 case Qualifiers::OCL_Autoreleasing: in isCXX98PODType() 986 case Qualifiers::OCL_None: in isCXX98PODType() 1040 case Qualifiers::OCL_ExplicitNone: in isTrivialType() 1043 case Qualifiers::OCL_Strong: in isTrivialType() 1044 case Qualifiers::OCL_Weak: in isTrivialType() [all …]
|
D | ASTDiagnostic.cpp | 480 Qualifiers FromQual, ToQual; 558 void SetNode(Qualifiers FromQual, Qualifiers ToQual) { in SetNode() 655 void GetNode(Qualifiers &FromQual, Qualifiers &ToQual) { in GetNode() 897 Qualifiers FromQual = FromType.getQualifiers(), in DiffTemplate() 1321 Qualifiers FromQual, ToQual; in TreeToString() 1392 Qualifiers FromQual = FromType.getLocalQualifiers(), in PrintTypeNames() 1602 void PrintQualifiers(Qualifiers FromQual, Qualifiers ToQual) { in PrintQualifiers() 1614 Qualifiers CommonQual = Qualifiers::removeCommonQualifiers(FromQual, in PrintQualifiers() 1655 void PrintQualifier(Qualifiers Q, bool ApplyBold, in PrintQualifier() 1682 Qualifiers FromQual = FromType.getQualifiers(), in DiffTemplate()
|
D | MicrosoftMangle.cpp | 248 void mangleQualifiers(Qualifiers Quals, bool IsMember); 250 void manglePointerCVQualifiers(Qualifiers Quals); 251 void manglePointerExtQualifiers(Qualifiers Quals, const Type *PointeeType); 1189 void MicrosoftCXXNameMangler::mangleQualifiers(Qualifiers Quals, in mangleQualifiers() 1290 MicrosoftCXXNameMangler::manglePointerExtQualifiers(Qualifiers Quals, in manglePointerExtQualifiers() 1300 void MicrosoftCXXNameMangler::manglePointerCVQualifiers(Qualifiers Quals) { in manglePointerCVQualifiers() 1366 Qualifiers Quals = T.getLocalQualifiers(); in mangleType() 1550 Qualifiers Quals = Qualifiers::fromCVRMask(Proto->getTypeQuals()); in mangleFunctionType() 1862 manglePointerExtQualifiers(Qualifiers(), T->getPointeeType().getTypePtr()); in mangleType() 1872 manglePointerExtQualifiers(Qualifiers(), T->getPointeeType().getTypePtr()); in mangleType() [all …]
|
D | ASTContext.cpp | 2002 ASTContext::getExtQualType(const Type *baseType, Qualifiers quals) const { in getExtQualType() 2052 Qualifiers::GC GCAttr) const { in getObjCGCQualType() 2821 (T.getObjCLifetime() == Qualifiers::OCL_None || in isCanonicalResultType() 2822 T.getObjCLifetime() == Qualifiers::OCL_ExplicitNone); in isCanonicalResultType() 2866 Qualifiers Qs = CanResultTy.getQualifiers(); in getFunctionType() 3898 Qualifiers &quals) { in getUnqualifiedArrayType() 4222 Qualifiers qs = split.Quals; in getAsArrayType() 4296 Qualifiers qs; in getBaseElementType() 4490 Qualifiers::ObjCLifetime ASTContext::getInnerObjCOwnership(QualType T) const { in getInnerObjCOwnership() 4492 if (T.getObjCLifetime() != Qualifiers::OCL_None) in getInnerObjCOwnership() [all …]
|
D | ItaniumMangle.cpp | 352 void mangleQualifiers(Qualifiers Quals); 1260 Qualifiers MethodQuals = in mangleNestedName() 1261 Qualifiers::fromCVRMask(Method->getTypeQualifiers()); in mangleNestedName() 1741 void CXXNameMangler::mangleQualifiers(Qualifiers Quals) { in mangleQualifiers() 1787 case Qualifiers::OCL_None: in mangleQualifiers() 1790 case Qualifiers::OCL_Weak: in mangleQualifiers() 1794 case Qualifiers::OCL_Strong: in mangleQualifiers() 1798 case Qualifiers::OCL_Autoreleasing: in mangleQualifiers() 1802 case Qualifiers::OCL_ExplicitNone: in mangleQualifiers() 1875 Qualifiers quals = split.Quals; in mangleType() [all …]
|
/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 38 static Qualifiers::ObjCLifetime getImpliedARCOwnership( in getImpliedARCOwnership() 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() 69 Qualifiers::ObjCLifetime propertyLifetime in checkARCPropertyDecl() 73 if (propertyLifetime == Qualifiers::OCL_None) return; in checkARCPropertyDecl() 75 Qualifiers::ObjCLifetime expectedLifetime in checkARCPropertyDecl() 83 if (propertyLifetime == Qualifiers::OCL_Strong) { in checkARCPropertyDecl() [all …]
|
D | SemaType.cpp | 1188 Qualifiers Qs, const DeclSpec *DS) { in BuildQualifiedType() 1255 return BuildQualifiedType(T, Loc, Qualifiers::fromCVRMask(CVR), DS); in BuildQualifiedType() 1269 type.getObjCLifetime() != Qualifiers::OCL_None) in inferARCLifetimeForPointee() 1272 Qualifiers::ObjCLifetime implicitLifetime = Qualifiers::OCL_None; in inferARCLifetimeForPointee() 1279 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee() 1285 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee() 1306 implicitLifetime = Qualifiers::OCL_Strong; in inferARCLifetimeForPointee() 1310 Qualifiers qs; in inferARCLifetimeForPointee() 1317 Qualifiers::fromCVRMask(FnTy->getTypeQuals()).getAsString(); in getFunctionQualifiersAsString() 1890 Qualifiers::ObjCLifetime ownership, [all …]
|
D | SemaOverload.cpp | 1072 NewQuals |= Qualifiers::Const; in IsOverload() 1075 OldQuals &= ~Qualifiers::Restrict; in IsOverload() 1076 NewQuals &= ~Qualifiers::Restrict; in IsOverload() 1952 Qualifiers Quals = CanonFromPointee.getQualifiers(); in BuildSimilarlyQualifiedPointerType() 2146 static QualType AdoptQualifiers(ASTContext &Context, QualType T, Qualifiers Qs){ in AdoptQualifiers() 2147 Qualifiers TQs = T.getQualifiers(); in AdoptQualifiers() 2169 Qualifiers FromQualifiers = FromType.getQualifiers(); in isObjCPointerConversion() 2371 Qualifiers ToQuals = ToPointee.getQualifiers(); in isObjCWritebackConversion() 2373 ToQuals.getObjCLifetime() != Qualifiers::OCL_Autoreleasing || in isObjCWritebackConversion() 2384 Qualifiers FromQuals = FromPointee.getQualifiers(); in isObjCWritebackConversion() [all …]
|
D | SemaTemplateDeduction.cpp | 113 DeductionQualifierComparison Qualifiers; member 897 Qualifiers ParamQs = ParamType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf() 898 Qualifiers ArgQs = ArgType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf() 1025 Comparison.Qualifiers = NeitherMoreQualified; in DeduceTemplateArgumentsByTypeMatch() 1027 Qualifiers ParamQuals = Param.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 1028 Qualifiers ArgQuals = Arg.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 1030 Comparison.Qualifiers = ParamMoreQualified; in DeduceTemplateArgumentsByTypeMatch() 1032 Comparison.Qualifiers = ArgMoreQualified; in DeduceTemplateArgumentsByTypeMatch() 1037 if (ArgQuals.getObjCLifetime() == Qualifiers::OCL_ExplicitNone && in DeduceTemplateArgumentsByTypeMatch() 1039 Comparison.Qualifiers = ParamMoreQualified; in DeduceTemplateArgumentsByTypeMatch() [all …]
|
D | SemaLookup.cpp | 2558 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingConstructor() 2561 LookupSpecialMember(Class, CXXCopyConstructor, Quals & Qualifiers::Const, in LookupCopyingConstructor() 2562 Quals & Qualifiers::Volatile, false, false, false); in LookupCopyingConstructor() 2571 LookupSpecialMember(Class, CXXMoveConstructor, Quals & Qualifiers::Const, in LookupMovingConstructor() 2572 Quals & Qualifiers::Volatile, false, false, false); in LookupMovingConstructor() 2598 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 2600 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 2603 LookupSpecialMember(Class, CXXCopyAssignment, Quals & Qualifiers::Const, in LookupCopyingAssignment() 2604 Quals & Qualifiers::Volatile, RValueThis, in LookupCopyingAssignment() 2605 ThisQuals & Qualifiers::Const, in LookupCopyingAssignment() [all …]
|
D | SemaExprCXX.cpp | 375 Qualifiers Quals; in BuildCXXTypeId() 429 Qualifiers Quals; in BuildCXXTypeId() 1246 AllocType.getObjCLifetime() == Qualifiers::OCL_None && in BuildCXXNew() 1584 if (BaseAllocType.getObjCLifetime() == Qualifiers::OCL_None && in CheckAllocatedType() 3281 case Qualifiers::OCL_None: in EvaluateUnaryTypeTrait() 3282 case Qualifiers::OCL_ExplicitNone: in EvaluateUnaryTypeTrait() 3285 case Qualifiers::OCL_Strong: in EvaluateUnaryTypeTrait() 3286 case Qualifiers::OCL_Weak: in EvaluateUnaryTypeTrait() 3287 case Qualifiers::OCL_Autoreleasing: in EvaluateUnaryTypeTrait() 3437 T.getObjCLifetime() == Qualifiers::OCL_Autoreleasing) in EvaluateUnaryTypeTrait() [all …]
|
D | SemaCast.cpp | 485 SmallVector<Qualifiers, 8> cv1, cv2; in CastsAwayConstness() 492 Qualifiers SrcQuals, DestQuals; in CastsAwayConstness() 496 Qualifiers RetainedSrcQuals, RetainedDestQuals; in CastsAwayConstness() 517 for (SmallVectorImpl<Qualifiers>::reverse_iterator i1 = cv1.rbegin(), in CastsAwayConstness() 1040 Qualifiers DestPointeeQuals = DestPointee.getQualifiers(); in TryStaticCast() 1041 Qualifiers SrcPointeeQuals = SrcPointee.getQualifiers(); in TryStaticCast() 1580 Qualifiers SrcQuals, DestQuals; in TryConstCast() 2344 Qualifiers CastQuals = CastPtr->getPointeeType().getQualifiers(); in CheckCStyleCast() 2345 Qualifiers ExprQuals = ExprPtr->getPointeeType().getQualifiers(); in CheckCStyleCast()
|
/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()
|