Home | History | Annotate | Download | only in Sema

Lines Matching refs:Qualifiers

1035   // cv-qualifiers (if any) and ref-qualifier (if any) on the function itself.
1070 NewQuals |= Qualifiers::Const;
1497 // just strip the qualifiers because they don't matter.
1905 /// same type qualifiers as FromPtr has on its pointee type. ToType,
1907 /// the right set of qualifiers on its pointee.
1925 Qualifiers Quals = CanonFromPointee.getQualifiers();
1936 // Build a pointer to ToPointee. It has the right qualifiers
1943 // Just build a canonical type that has the right qualifiers.
1970 /// might differ from ToType in its cv-qualifiers at some level) into
2118 /// \brief Adopt the given qualifiers for the given type.
2119 static QualType AdoptQualifiers(ASTContext &Context, QualType T, Qualifiers Qs){
2120 Qualifiers TQs = T.getQualifiers();
2122 // Check whether qualifiers already match.
2141 // The set of qualifiers on the type we're converting from.
2142 Qualifiers FromQualifiers = FromType.getQualifiers();
2337 // Parameter must be a pointer to __autoreleasing (with no other qualifiers).
2344 Qualifiers ToQuals = ToPointee.getQualifiers();
2346 ToQuals.getObjCLifetime() != Qualifiers::OCL_Autoreleasing ||
2357 Qualifiers FromQuals = FromPointee.getQualifiers();
2359 (FromQuals.getObjCLifetime() != Qualifiers::OCL_Strong &&
2360 FromQuals.getObjCLifetime() != Qualifiers::OCL_Weak))
2363 // Make sure that we have compatible qualifiers.
2364 FromQuals.setObjCLifetime(Qualifiers::OCL_Autoreleasing);
2368 // Remove qualifiers from the pointee type we're converting from; they
2370 // qualifiers (with __autoreleasing) if the compatibility check succeeds.
2671 /// ToType in its cv-qualifiers at some level) into ConvertedType.
2794 // A conversion can add cv-qualifiers at levels other than the first
2799 // Within each iteration of the loop, we check the qualifiers to
2807 Qualifiers FromQuals = FromType.getQualifiers();
2808 Qualifiers ToQuals = ToType.getQualifiers();
2820 // Objective-C lifetime qualifiers.
2843 // Keep track of whether all prior cv-qualifiers in the "to" type
2853 // qualifiers above), then this is a qualification conversion.
3334 Qualifiers Quals;
3532 // top-level cv-qualifiers, and the type to which the reference
3539 Qualifiers T1Quals, T2Quals;
3552 // If the type is an array type, promote the element qualifiers to the
3610 Qualifiers T1Quals, T2Quals;
3619 // If the type is an array type, promote the element qualifiers to the type
3640 // Within each iteration of the loop, we check the qualifiers to
3647 // strict subset of qualifiers.
3649 // The qualifiers are the same, so this doesn't tell us anything
3653 // T1 has fewer qualifiers, so it could be the better sequence.
3655 // Neither has qualifiers that are a subset of the other's
3656 // qualifiers.
3661 // T2 has fewer qualifiers, so it could be the better sequence.
3663 // Neither has qualifiers that are a subset of the other's
3664 // qualifiers.
3669 // Qualifiers are disjoint.
3925 Qualifiers T1Quals, T2Quals;
3952 // If the type is an array type, promote the element qualifiers to the type
3968 // qualifiers when performing these computations, so that e.g., an int in
4303 // Note that we only want to check address spaces and cvr-qualifiers here.
4304 // ObjC GC and lifetime qualifiers aren't important.
4305 Qualifiers T1Quals = T1.getQualifiers();
4306 Qualifiers T2Quals = T2.getQualifiers();
4643 Qualifiers::Const | Qualifiers::Volatile : Method->getTypeQualifiers();
4679 // First check the qualifiers.
4710 if (!FromClassification.isLValue() && Quals != Qualifiers::Const) {
4774 Qualifiers FromQs = FromRecordType.getQualifiers();
4775 Qualifiers ToQs = DestType.getQualifiers();
6261 const Qualifiers &VisibleQuals);
6279 const Qualifiers &VisibleTypeConversionsQuals);
6317 /// FIXME: what to do about extended qualifiers?
6320 const Qualifiers &VisibleQuals) {
6349 for (unsigned CVR = BaseCVR+1; CVR <= Qualifiers::CVRMask; ++CVR) {
6352 if ((CVR & Qualifiers::Volatile) && !hasVolatile) continue;
6356 if ((CVR & Qualifiers::Restrict) &&
6386 /// FIXME: what to do about extended qualifiers?
6407 // qualifiers.
6409 for (unsigned CVR = BaseCVR+1; CVR <= Qualifiers::CVRMask; ++CVR) {
6433 const Qualifiers &VisibleQuals) {
6446 // Otherwise, we don't care about qualifiers on the type.
6532 /// CollectVRQualifiers - This routine returns Volatile/Restrict qualifiers,
6534 static Qualifiers CollectVRQualifiers(ASTContext &Context, Expr* ArgExpr) {
6535 Qualifiers VRQuals;
6566 // Need to go down the pointer/mempointer chain and add qualifiers
6599 Qualifiers VisibleTypeConversionsQuals;
6744 S.Context.getCVRQualifiedType(CandidateTy, Qualifiers::Restrict));
6754 (Qualifiers::Volatile |
6755 Qualifiers::Restrict)));
6768 Qualifiers VisibleTypeConversionsQuals,
6856 // For every function type T that does not have cv-qualifiers or a
7322 (Qualifiers::Volatile |
7323 Qualifiers::Restrict)));
7371 (Qualifiers::Volatile |
7372 Qualifiers::Restrict)));
7670 Qualifiers VisibleTypeConversionsQuals;
8250 Qualifiers FromQs = CFromTy.getQualifiers();
8251 Qualifiers ToQs = CToTy.getQualifiers();
8287 assert(CVR && "unexpected qualifiers mismatch");
8383 Qualifiers FromQs = CFromTy.getQualifiers();
8384 Qualifiers ToQs = CToTy.getQualifiers();
8525 assert(ParamD && "no parameter found for bad qualifiers deduction result");
8531 // qualified version of ParamD, so move the qualifiers to that.
10966 Qualifiers funcQuals = Qualifiers::fromCVRMask(proto->getTypeQuals());
10971 Qualifiers objectQuals = objectType.getQualifiers();
10973 Qualifiers difference = objectQuals - funcQuals;