/external/clang/test/SemaCXX/ |
D | addr-of-overloaded-function.cpp | 210 struct Qualifiers { struct 223 void (Qualifiers::*X)(); in QualifierTest() 224 …X = &Qualifiers::C; // expected-error-re {{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() argument 225 …X = &Qualifiers::V; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attribu… in QualifierTest() 226 …X = &Qualifiers::R; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attribu… in QualifierTest() 227 …X = &Qualifiers::CV; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() 228 …X = &Qualifiers::CR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() 229 …X = &Qualifiers::VR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() 230 …X = &Qualifiers::CVR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attri… in QualifierTest() 237 …void (Qualifiers::*X)() = &Dummy::N; // expected-error-re{{cannot initialize a variable of type 'v…
|
/external/clang/include/clang/AST/ |
D | Type.h | 117 class Qualifiers { 166 Qualifiers() : Mask(0) {} 170 static Qualifiers removeCommonQualifiers(Qualifiers &L, Qualifiers &R) { 173 Qualifiers Q; 180 Qualifiers Q; 206 static Qualifiers fromFastMask(unsigned Mask) { 207 Qualifiers Qs; 212 static Qualifiers fromCVRMask(unsigned CVR) { 213 Qualifiers Qs; 218 static Qualifiers fromCVRUMask(unsigned CVRU) { [all …]
|
D | ASTContext.h | 986 QualType getExtQualType(const Type *Base, Qualifiers Quals) const; 1004 QualType getObjCGCQualType(QualType T, Qualifiers::GC gcAttr) const; 1012 return T.withFastQualifiers(Qualifiers::Restrict); in getRestrictType() 1021 return T.withFastQualifiers(Qualifiers::Volatile); in getVolatileType() 1113 Qualifiers::ObjCLifetime &Lifetime, 1689 return getQualifiedType(T, Qualifiers::fromCVRMask(CVR)); in getCVRQualifiedType() 1698 QualType getQualifiedType(QualType T, Qualifiers Qs) const { in getQualifiedType() 1707 QualType getQualifiedType(const Type *T, Qualifiers Qs) const { in getQualifiedType() 1717 Qualifiers::ObjCLifetime lifetime) { in getLifetimeQualifiedType() 1718 assert(type.getObjCLifetime() == Qualifiers::OCL_None); in getLifetimeQualifiedType() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGValue.h | 177 Qualifiers Quals; 220 void Initialize(QualType Type, Qualifiers Quals, 255 return Quals.getCVRQualifiers() & ~Qualifiers::Const; in getVRQualifiers() 260 Qualifiers::ObjCLifetime getObjCLifetime() const { in getObjCLifetime() 289 return Quals.getObjCGCAttr() == Qualifiers::Weak; in isObjCWeak() 292 return Quals.getObjCGCAttr() == Qualifiers::Strong; in isObjCStrong() 311 const Qualifiers &getQuals() const { return Quals; } in getQuals() 312 Qualifiers &getQuals() { return Quals; } in getQuals() 375 Qualifiers qs = type.getQualifiers(); 446 Qualifiers Quals; [all …]
|
D | CGDecl.cpp | 538 Qualifiers::ObjCLifetime lifetime) { in EmitAutoVarWithLifetime() 540 case Qualifiers::OCL_None: in EmitAutoVarWithLifetime() 543 case Qualifiers::OCL_ExplicitNone: in EmitAutoVarWithLifetime() 547 case Qualifiers::OCL_Strong: { in EmitAutoVarWithLifetime() 558 case Qualifiers::OCL_Autoreleasing: in EmitAutoVarWithLifetime() 562 case Qualifiers::OCL_Weak: in EmitAutoVarWithLifetime() 621 if (srcExpr->getType().getObjCLifetime() != Qualifiers::OCL_Weak) in tryEmitARCCopyWeakInit() 662 Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime(); in EmitScalarInit() 687 if (lifetime != Qualifiers::OCL_ExplicitNone) in EmitScalarInit() 704 if (lifetime == Qualifiers::OCL_Weak) in EmitScalarInit() [all …]
|
D | CGBlocks.cpp | 194 Qualifiers::ObjCLifetime Lifetime; 199 Qualifiers::ObjCLifetime lifetime, in BlockLayoutChunk() 226 if (chunk.Lifetime == Qualifiers::OCL_Strong) in operator <() 228 if (chunk.Lifetime == Qualifiers::OCL_Weak) in operator <() 360 Qualifiers::OCL_None, in computeBlockInfo() 377 Qualifiers::OCL_None, &CI, in computeBlockInfo() 391 Qualifiers::ObjCLifetime lifetime = in computeBlockInfo() 395 case Qualifiers::OCL_None: llvm_unreachable("impossible"); in computeBlockInfo() 396 case Qualifiers::OCL_ExplicitNone: in computeBlockInfo() 397 case Qualifiers::OCL_Autoreleasing: in computeBlockInfo() [all …]
|
D | CGObjCRuntime.cpp | 289 case Qualifiers::OCL_Strong: in EmitInitOfCatchParam() 293 case Qualifiers::OCL_None: in EmitInitOfCatchParam() 294 case Qualifiers::OCL_ExplicitNone: in EmitInitOfCatchParam() 295 case Qualifiers::OCL_Autoreleasing: in EmitInitOfCatchParam() 299 case Qualifiers::OCL_Weak: in EmitInitOfCatchParam()
|
D | CGExpr.cpp | 171 Qualifiers Quals, in EmitAnyExprToMem() 208 case Qualifiers::OCL_None: in pushTemporaryCleanup() 209 case Qualifiers::OCL_ExplicitNone: in pushTemporaryCleanup() 213 case Qualifiers::OCL_Autoreleasing: in pushTemporaryCleanup() 217 case Qualifiers::OCL_Strong: in pushTemporaryCleanup() 218 case Qualifiers::OCL_Weak: in pushTemporaryCleanup() 233 if (Lifetime == Qualifiers::OCL_Strong) { in pushTemporaryCleanup() 357 if (ownership != Qualifiers::OCL_None && in EmitMaterializeTemporaryExpr() 358 ownership != Qualifiers::OCL_ExplicitNone) { in EmitMaterializeTemporaryExpr() 424 EmitAnyExprToMem(E, Object, Qualifiers(), /*IsInit*/true); in EmitMaterializeTemporaryExpr() [all …]
|
D | CGObjC.cpp | 87 EmitAnyExprToMem(SubExpr, Temporary, Qualifiers(), /*isInit*/ true); in EmitObjCBoxedExpr() 294 if (receiver->getType().getObjCLifetime() != Qualifiers::OCL_Strong) in shouldExtendReceiverForInnerPointerMessage() 333 if (CE->getSubExpr()->getType().getObjCLifetime() == Qualifiers::OCL_Weak) in findWeakLValue() 703 if (ivarType.getObjCLifetime() == Qualifiers::OCL_Strong) in PropertyImplStrategy() 1007 if (LV.getQuals().getObjCLifetime() == Qualifiers::OCL_Weak) { in generateObjCGetterBody() 1633 elementLValue.getQuals().setObjCLifetime(Qualifiers::OCL_ExplicitNone); in EmitObjCForCollectionStmt() 2407 case Qualifiers::OCL_None: in tryEmitARCRetainLoadOfScalar() 2408 case Qualifiers::OCL_ExplicitNone: in tryEmitARCRetainLoadOfScalar() 2409 case Qualifiers::OCL_Strong: in tryEmitARCRetainLoadOfScalar() 2410 case Qualifiers::OCL_Autoreleasing: in tryEmitARCRetainLoadOfScalar() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DynamicTypeChecker.cpp | 80 QualType::print(DynamicType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError() 83 QualType::print(StaticType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError() 124 QualType::print(TrackedType.getType().getTypePtr(), Qualifiers(), OS, in VisitNode() 131 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode() 133 QualType::print(ExplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode() 139 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode() 141 QualType::print(ImplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
|
D | DynamicTypePropagation.cpp | 882 QualType::print(From, Qualifiers(), OS, C.getLangOpts(), llvm::Twine()); in reportGenericsBug() 884 QualType::print(To, Qualifiers(), OS, C.getLangOpts(), llvm::Twine()); in reportGenericsBug() 926 QualType::print(*TrackedType, Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode() 932 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode() 934 QualType::print(ExplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode() 940 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode() 942 QualType::print(ImplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
|
/external/clang/lib/AST/ |
D | TypePrinter.cpp | 93 void print(const Type *ty, Qualifiers qs, raw_ostream &OS, 101 void printBefore(const Type *ty, Qualifiers qs, raw_ostream &OS); 103 void printAfter(const Type *ty, Qualifiers qs, raw_ostream &OS); 118 if (TypeQuals & Qualifiers::Const) { in AppendTypeQualList() 122 if (TypeQuals & Qualifiers::Volatile) { in AppendTypeQualList() 127 if (TypeQuals & Qualifiers::Restrict) { in AppendTypeQualList() 147 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS, in print() 243 Qualifiers Quals = Split.Quals; in printBefore() 253 void TypePrinter::printBefore(const Type *T,Qualifiers Quals, raw_ostream &OS) { in printBefore() 306 void TypePrinter::printAfter(const Type *T, Qualifiers Quals, raw_ostream &OS) { in printAfter() [all …]
|
D | MicrosoftMangle.cpp | 322 void mangleQualifiers(Qualifiers Quals, bool IsMember); 324 void manglePointerCVQualifiers(Qualifiers Quals); 325 void manglePointerExtQualifiers(Qualifiers Quals, QualType PointeeType); 340 Qualifiers Quals, \ 1341 void MicrosoftCXXNameMangler::mangleQualifiers(Qualifiers Quals, in mangleQualifiers() 1441 void MicrosoftCXXNameMangler::manglePointerExtQualifiers(Qualifiers Quals, in manglePointerExtQualifiers() 1456 void MicrosoftCXXNameMangler::manglePointerCVQualifiers(Qualifiers Quals) { in manglePointerCVQualifiers() 1552 Qualifiers Quals = T.getLocalQualifiers(); in mangleType() 1613 void MicrosoftCXXNameMangler::mangleType(const BuiltinType *T, Qualifiers, in mangleType() argument 1774 void MicrosoftCXXNameMangler::mangleType(const FunctionProtoType *T, Qualifiers, in mangleType() argument [all …]
|
D | Type.cpp | 32 bool Qualifiers::isStrictSupersetOf(Qualifiers Other) const { in isStrictSupersetOf() 263 Qualifiers quals = split.Quals; in getSplitUnqualifiedTypeImpl() 1990 case Qualifiers::OCL_ExplicitNone: in isCXX98PODType() 1993 case Qualifiers::OCL_Strong: in isCXX98PODType() 1994 case Qualifiers::OCL_Weak: in isCXX98PODType() 1995 case Qualifiers::OCL_Autoreleasing: in isCXX98PODType() 1998 case Qualifiers::OCL_None: in isCXX98PODType() 2052 case Qualifiers::OCL_ExplicitNone: in isTrivialType() 2055 case Qualifiers::OCL_Strong: in isTrivialType() 2056 case Qualifiers::OCL_Weak: in isTrivialType() [all …]
|
D | ASTDiagnostic.cpp | 526 Qualifiers Qual; 581 Qualifiers FromQual, Qualifiers ToQual, in SetTemplateDiff() 749 Qualifiers &FromQual, Qualifiers &ToQual) { in GetTemplateDiff() 1109 Qualifiers FromQual = FromType.getQualifiers(), in DiffTypes() 1515 Qualifiers FromQual, ToQual; in TreeToString() 1600 Qualifiers FromQual = FromType.getLocalQualifiers(), in PrintTypeNames() 1905 void PrintQualifiers(Qualifiers FromQual, Qualifiers ToQual) { in PrintQualifiers() 1917 Qualifiers CommonQual = Qualifiers::removeCommonQualifiers(FromQual, in PrintQualifiers() 1958 void PrintQualifier(Qualifiers Q, bool ApplyBold, in PrintQualifier() 1985 Qualifiers FromQual = FromTemplateType.getQualifiers(), in DiffTemplate()
|
D | ASTContext.cpp | 2148 ASTContext::getExtQualType(const Type *baseType, Qualifiers quals) const { in getExtQualType() 2198 Qualifiers::GC GCAttr) const { in getObjCGCQualType() 2990 (T.getObjCLifetime() == Qualifiers::OCL_None || in isCanonicalResultType() 2991 T.getObjCLifetime() == Qualifiers::OCL_ExplicitNone); in isCanonicalResultType() 3033 Qualifiers Qs = CanResultType.getQualifiers(); in getCanonicalFunctionResultType() 4190 Qualifiers &quals) { in getUnqualifiedArrayType() 4514 Qualifiers qs = split.Quals; in getAsArrayType() 4601 Qualifiers qs; in getBaseElementType() 4814 Qualifiers::ObjCLifetime ASTContext::getInnerObjCOwnership(QualType T) const { in getInnerObjCOwnership() 4816 if (T.getObjCLifetime() != Qualifiers::OCL_None) in getInnerObjCOwnership() [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() 72 Qualifiers::ObjCLifetime propertyLifetime in checkPropertyDeclWithOwnership() 75 assert(propertyLifetime != Qualifiers::OCL_None); in checkPropertyDeclWithOwnership() 77 Qualifiers::ObjCLifetime expectedLifetime in checkPropertyDeclWithOwnership() 85 if (propertyLifetime == Qualifiers::OCL_Strong) { in checkPropertyDeclWithOwnership() [all …]
|
D | SemaType.cpp | 1747 Qualifiers Qs, const DeclSpec *DS) { in BuildQualifiedType() 1821 Qualifiers Q = Qualifiers::fromCVRMask(CVR); in BuildQualifiedType() 1837 type.getObjCLifetime() != Qualifiers::OCL_None) in inferARCLifetimeForPointee() 1840 Qualifiers::ObjCLifetime implicitLifetime = Qualifiers::OCL_None; in inferARCLifetimeForPointee() 1847 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee() 1853 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee() 1874 implicitLifetime = Qualifiers::OCL_Strong; in inferARCLifetimeForPointee() 1878 Qualifiers qs; in inferARCLifetimeForPointee() 1885 Qualifiers::fromCVRMask(FnTy->getTypeQuals()).getAsString(); in getFunctionQualifiersAsString() 2551 Qualifiers::ObjCLifetime ownership, [all …]
|
D | SemaOverload.cpp | 1095 NewQuals |= Qualifiers::Const; in IsOverload() 1098 OldQuals &= ~Qualifiers::Restrict; in IsOverload() 1099 NewQuals &= ~Qualifiers::Restrict; in IsOverload() 2048 Qualifiers Quals = CanonFromPointee.getQualifiers(); in BuildSimilarlyQualifiedPointerType() 2241 static QualType AdoptQualifiers(ASTContext &Context, QualType T, Qualifiers Qs){ in AdoptQualifiers() 2242 Qualifiers TQs = T.getQualifiers(); in AdoptQualifiers() 2264 Qualifiers FromQualifiers = FromType.getQualifiers(); in isObjCPointerConversion() 2450 Qualifiers ToQuals = ToPointee.getQualifiers(); in isObjCWritebackConversion() 2452 ToQuals.getObjCLifetime() != Qualifiers::OCL_Autoreleasing || in isObjCWritebackConversion() 2463 Qualifiers FromQuals = FromPointee.getQualifiers(); in isObjCWritebackConversion() [all …]
|
D | SemaCast.cpp | 491 Qualifiers *CastAwayQualifiers = nullptr) { in CastsAwayConstness() 511 SmallVector<Qualifiers, 8> cv1, cv2; in CastsAwayConstness() 520 Qualifiers SrcQuals, DestQuals; in CastsAwayConstness() 524 Qualifiers RetainedSrcQuals, RetainedDestQuals; in CastsAwayConstness() 555 for (SmallVectorImpl<Qualifiers>::reverse_iterator i1 = cv1.rbegin(), in CastsAwayConstness() 1071 Qualifiers DestPointeeQuals = DestPointee.getQualifiers(); in TryStaticCast() 1072 Qualifiers SrcPointeeQuals = SrcPointee.getQualifiers(); in TryStaticCast() 1630 Qualifiers SrcQuals, DestQuals; in TryConstCast() 2536 Qualifiers CastQuals = CastPtr->getPointeeType().getQualifiers(); in CheckCStyleCast() 2537 Qualifiers ExprQuals = ExprPtr->getPointeeType().getQualifiers(); in CheckCStyleCast() [all …]
|
D | SemaLookup.cpp | 3023 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingConstructor() 3026 LookupSpecialMember(Class, CXXCopyConstructor, Quals & Qualifiers::Const, in LookupCopyingConstructor() 3027 Quals & Qualifiers::Volatile, false, false, false); in LookupCopyingConstructor() 3036 LookupSpecialMember(Class, CXXMoveConstructor, Quals & Qualifiers::Const, in LookupMovingConstructor() 3037 Quals & Qualifiers::Volatile, false, false, false); in LookupMovingConstructor() 3063 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 3065 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment() 3068 LookupSpecialMember(Class, CXXCopyAssignment, Quals & Qualifiers::Const, in LookupCopyingAssignment() 3069 Quals & Qualifiers::Volatile, RValueThis, in LookupCopyingAssignment() 3070 ThisQuals & Qualifiers::Const, in LookupCopyingAssignment() [all …]
|
D | SemaExprCXX.cpp | 381 Qualifiers Quals; in BuildCXXTypeId() 440 Qualifiers Quals; in BuildCXXTypeId() 913 ClassType.removeLocalCVRQualifiers(Qualifiers::CVRMask); in adjustCVQualifiersForCXXThisWithinLambda() 948 ClassType.removeLocalCVRQualifiers(Qualifiers::CVRMask); in adjustCVQualifiersForCXXThisWithinLambda() 1017 CXXThisTypeQuals &= Qualifiers::FastMask; in CXXThisScopeRAII() 1045 CaptureThisFieldTy.removeLocalCVRQualifiers(Qualifiers::CVRMask); in captureThis() 1585 AllocType.getObjCLifetime() == Qualifiers::OCL_None && in BuildCXXNew() 1924 if (BaseAllocType.getObjCLifetime() == Qualifiers::OCL_None && in CheckAllocatedType() 3978 case Qualifiers::OCL_None: in EvaluateUnaryTypeTrait() 3979 case Qualifiers::OCL_ExplicitNone: in EvaluateUnaryTypeTrait() [all …]
|
/external/clang/lib/Tooling/Core/ |
D | QualTypeNames.cpp | 390 Qualifiers Quals = QT.getQualifiers(); in getFullyQualifiedType() 403 Qualifiers Quals = QT.getQualifiers(); in getFullyQualifiedType() 422 Qualifiers Quals = QT.getQualifiers(); in getFullyQualifiedType() 434 Qualifiers PrefixQualifiers = QT.getLocalQualifiers(); in getFullyQualifiedType()
|
/external/clang/lib/ARCMigrate/ |
D | TransProperties.cpp | 229 I->IvarD->getType().getObjCLifetime() != Qualifiers::OCL_Weak) { in rewriteAssign() 257 I->IvarD->getType().getObjCLifetime() != Qualifiers::OCL_Weak) in maybeAddWeakOrUnsafeUnretainedAttr() 325 != Qualifiers::OCL_Strong) in hasIvarWithExplicitARCOwnership()
|
D | TransAPIUses.cpp | 77 if (pointee.getObjCLifetime() > Qualifiers::OCL_ExplicitNone) in VisitObjCMessageExpr()
|