Home | History | Annotate | Download | only in Sema

Lines Matching refs:Qualifiers

767            DS.getTypeSpecSign() == 0 && "No qualifiers on tag names!");
781 "Can't handle qualifiers on typedef names yet!");
788 // Silently drop any existing protocol qualifiers.
920 // Apply const/volatile/restrict qualifiers to T.
952 // Warn about CV qualifiers on functions: C99 6.7.3p8: "If the specification
953 // of a function type includes any type qualifiers, the behavior is
973 // cv-qualifiers are introduced through the use of a typedef
975 // case the cv-qualifiers are ignored.
1002 Qualifiers Quals = Qualifiers::fromCVRMask(TypeQuals);
1017 Qualifiers Qs) {
1066 type.getObjCLifetime() != Qualifiers::OCL_None)
1069 Qualifiers::ObjCLifetime implicitLifetime = Qualifiers::OCL_None;
1076 implicitLifetime = Qualifiers::OCL_ExplicitNone;
1082 implicitLifetime = Qualifiers::OCL_ExplicitNone;
1103 implicitLifetime = Qualifiers::OCL_Strong;
1107 Qualifiers qs;
1463 /// \param Quals The cvr-qualifiers to be applied to the function type.
1584 /// \param CVR The cvr-qualifiers to be applied to the block pointer type.
1624 Qualifiers::ObjCLifetime ownership,
1635 // TODO: should we care about decl qualifiers?
1690 Qualifiers qs;
1693 qs.addObjCLifetime(Qualifiers::OCL_ExplicitNone);
1695 qs.addObjCLifetime(Qualifiers::OCL_Autoreleasing);
1717 transferARCOwnershipToDeclaratorChunk(state, Qualifiers::OCL_Autoreleasing,
1742 // find a range and grow it to encompass all the qualifiers, regardless of
1744 if (Quals & Qualifiers::Const) {
1751 if (Quals & Qualifiers::Volatile) {
1758 Qualifiers::Restrict) {
1766 assert(NumQuals > 0 && "No known qualifiers?");
1974 Qualifiers::fromCVRMask(FnTy->getTypeQuals()).getAsString();
2013 // qualifiers separately.
2121 Qualifiers Quals;
2123 T = S.BuildQualifiedType(T, DeclType.Loc, Qualifiers::Restrict);
2218 // cv-qualifiers on return types are pointless except when the type is a
2484 // Core issue 547 also allows cv-qualifiers on function types that are
2534 if (Chunk.Fun.TypeQuals & Qualifiers::Const)
2536 if (Chunk.Fun.TypeQuals & Qualifiers::Volatile)
2539 //if (Chunk.Fun.TypeQuals & Qualifiers::Restrict)
2554 // Strip the cv-qualifiers and ref-qualifiers from the type.
2684 Qualifiers::ObjCLifetime ownership) {
2686 declSpecTy.getObjCLifetime() == Qualifiers::OCL_None) {
2687 Qualifiers qs;
2694 Qualifiers::ObjCLifetime ownership,
2708 case Qualifiers::OCL_None: llvm_unreachable("no ownership!");
2709 case Qualifiers::OCL_ExplicitNone: attrStr = "none"; break;
2710 case Qualifiers::OCL_Strong: attrStr = "strong"; break;
2711 case Qualifiers::OCL_Weak: attrStr = "weak"; break;
2712 case Qualifiers::OCL_Autoreleasing: attrStr = "autoreleasing"; break;
2731 Qualifiers::ObjCLifetime ownership) {
2788 Qualifiers::ObjCLifetime ownership = Context.getInnerObjCOwnership(FromTy);
2789 if (ownership != Qualifiers::OCL_None)
2885 // Protocol qualifiers.
3235 // qualifiers for two or more different address spaces."
3277 max = Qualifiers::MaxAddressSpace;
3280 << Qualifiers::MaxAddressSpace << ASArgExpr->getSourceRange();
3359 Qualifiers::ObjCLifetime lifetime;
3361 lifetime = Qualifiers::OCL_ExplicitNone;
3363 lifetime = Qualifiers::OCL_Strong;
3365 lifetime = Qualifiers::OCL_Weak;
3367 lifetime = Qualifiers::OCL_Autoreleasing;
3377 // Check for redundant/conflicting ownership qualifiers.
3378 if (Qualifiers::ObjCLifetime previousLifetime
3387 // Otherwise, if the qualifiers actually conflict, pull sugar off
3404 case Qualifiers::OCL_None:
3405 case Qualifiers::OCL_ExplicitNone:
3407 case Qualifiers::OCL_Strong: name = "__strong"; break;
3408 case Qualifiers::OCL_Weak: name = "__weak"; break;
3409 case Qualifiers::OCL_Autoreleasing: name = "__autoreleasing"; break;
3426 if (lifetime == Qualifiers::OCL_Weak &&
3445 if (lifetime == Qualifiers::OCL_Weak) {
3477 if (type.getObjCGCAttr() != Qualifiers::GCNone) {
3490 Qualifiers::GC GCAttr;
3497 GCAttr = Qualifiers::Weak;
3499 GCAttr = Qualifiers::Strong;
3593 // Build up the inner type, applying the qualifiers from the old
3597 // As a special case, tail-recurse if there are no qualifiers.
3772 /// Handle OpenCL image access qualifiers: read_only, write_only, read_write