Home
last modified time | relevance | path

Searched refs:Quals (Results 1 – 25 of 26) sorted by relevance

12

/external/clang/lib/CodeGen/
DCGValue.h127 Qualifiers Quals; variable
155 void Initialize(QualType Type, Qualifiers Quals,
159 this->Quals = Quals;
177 bool isVolatileQualified() const { return Quals.hasVolatile(); } in isVolatileQualified()
178 bool isRestrictQualified() const { return Quals.hasRestrict(); } in isRestrictQualified()
180 return Quals.getCVRQualifiers() & ~Qualifiers::Const; in getVRQualifiers()
186 return Quals.getObjCLifetime(); in getObjCLifetime()
205 return Quals.getObjCGCAttr() == Qualifiers::Weak; in isObjCWeak()
208 return Quals.getObjCGCAttr() == Qualifiers::Strong; in isObjCStrong()
212 return Quals.hasVolatile(); in isVolatile()
[all …]
DCGRTTI.cpp219 Qualifiers Quals = PointeeTy.getQualifiers(); in TypeInfoIsInStandardLibrary() local
220 Quals.removeConst(); in TypeInfoIsInStandardLibrary()
222 if (!Quals.empty()) in TypeInfoIsInStandardLibrary()
712 static unsigned ComputeQualifierFlags(Qualifiers Quals) { in ComputeQualifierFlags() argument
715 if (Quals.hasConst()) in ComputeQualifierFlags()
717 if (Quals.hasVolatile()) in ComputeQualifierFlags()
719 if (Quals.hasRestrict()) in ComputeQualifierFlags()
905 Qualifiers Quals; in BuildPointerTypeInfo() local
907 CGM.getContext().getUnqualifiedArrayType(PointeeTy, Quals); in BuildPointerTypeInfo()
912 unsigned Flags = ComputeQualifierFlags(Quals); in BuildPointerTypeInfo()
[all …]
DCGExpr.cpp141 Qualifiers Quals, in EmitAnyExprToMem() argument
145 EmitComplexExprIntoAddr(E, Location, Quals.hasVolatile()); in EmitAnyExprToMem()
148 EmitAggExpr(E, AggValueSlot::forAddr(Location, Alignment, Quals, in EmitAnyExprToMem()
DCGDebugInfo.cpp1656 unsigned Quals = T.getLocalFastQualifiers(); in UnwrapTypeForDebugInfo() local
1658 T.addFastQualifiers(Quals); in UnwrapTypeForDebugInfo()
DCodeGenFunction.h1649 Qualifiers Quals, bool IsInitializer);
/external/clang/include/clang/AST/
DType.h310 Qualifiers Quals = *this;
311 Quals.setFastQualifiers(0);
312 return Quals;
457 Qualifiers Quals;
459 SplitQualType() : Ty(0), Quals() {}
460 SplitQualType(const Type *ty, Qualifiers qs) : Ty(ty), Quals(qs) {}
466 return std::pair<const Type *,Qualifiers>(Ty, Quals);
470 return a.Ty == b.Ty && a.Quals == b.Quals;
473 return a.Ty != b.Ty || a.Quals != b.Quals;
514 QualType(const Type *Ptr, unsigned Quals)
[all …]
DASTContext.h750 QualType getExtQualType(const Type *Base, Qualifiers Quals) const;
1334 return getQualifiedType(split.Ty, split.Quals); in getQualifiedType()
1590 QualType getUnqualifiedArrayType(QualType T, Qualifiers &Quals);
DDeclCXX.h2117 unsigned Quals;
2118 return isCopyOrMoveConstructor(Quals);
/external/clang/lib/AST/
DTypePrinter.cpp135 print(split.Ty, split.Quals, OS, PlaceHolder); in print()
138 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS, in print() argument
150 printBefore(T, Quals, OS); in print()
152 printAfter(T, Quals, OS); in print()
234 Qualifiers Quals = Split.Quals; in printBefore() local
237 Quals -= QualType(Subst, 0).getQualifiers(); in printBefore()
239 printBefore(Split.Ty, Quals, OS); in printBefore()
244 void TypePrinter::printBefore(const Type *T,Qualifiers Quals, raw_ostream &OS) { in printBefore() argument
256 if (CanPrefixQualifiers && !Quals.empty()) { in printBefore()
259 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/true); in printBefore()
[all …]
DMicrosoftMangle.cpp70 void mangleQualifiers(Qualifiers Quals, bool IsMember);
71 void manglePointerQualifiers(Qualifiers Quals);
829 void MicrosoftCXXNameMangler::mangleQualifiers(Qualifiers Quals, in mangleQualifiers() argument
883 bool HasConst = Quals.hasConst(), in mangleQualifiers()
884 HasVolatile = Quals.hasVolatile(); in mangleQualifiers()
910 void MicrosoftCXXNameMangler::manglePointerQualifiers(Qualifiers Quals) { in manglePointerQualifiers() argument
915 bool HasConst = Quals.hasConst(), in manglePointerQualifiers()
916 HasVolatile = Quals.hasVolatile(); in manglePointerQualifiers()
956 Qualifiers Quals = T.getLocalQualifiers(); in mangleType() local
960 manglePointerQualifiers(Quals); in mangleType()
[all …]
DItaniumMangle.cpp318 void mangleQualifiers(Qualifiers Quals);
1660 void CXXNameMangler::mangleQualifiers(Qualifiers Quals) { in mangleQualifiers() argument
1662 if (Quals.hasRestrict()) in mangleQualifiers()
1664 if (Quals.hasVolatile()) in mangleQualifiers()
1666 if (Quals.hasConst()) in mangleQualifiers()
1669 if (Quals.hasAddressSpace()) { in mangleQualifiers()
1677 ASString = "AS" + llvm::utostr_32(Quals.getAddressSpace()); in mangleQualifiers()
1682 switch (Quals.getObjCLifetime()) { in mangleQualifiers()
1777 Qualifiers quals = split.Quals; in mangleType()
DASTContext.cpp1759 canonSplit.Quals.addConsistentQualifiers(quals); in getExtQualType()
1760 canon = getExtQualType(canonSplit.Ty, canonSplit.Quals); in getExtQualType()
1779 QualifierCollector Quals; in getAddrSpaceQualType() local
1780 const Type *TypeNode = Quals.strip(T); in getAddrSpaceQualType()
1784 assert(!Quals.hasAddressSpace() && in getAddrSpaceQualType()
1786 Quals.addAddressSpace(AddressSpace); in getAddrSpaceQualType()
1788 return getExtQualType(TypeNode, Quals); in getAddrSpaceQualType()
1807 QualifierCollector Quals; in getObjCGCQualType() local
1808 const Type *TypeNode = Quals.strip(T); in getObjCGCQualType()
1812 assert(!Quals.hasObjCGCAttr() && in getObjCGCQualType()
[all …]
DType.cpp200 return Context.getQualifiedType(split.Ty, split.Quals); in getDesugaredType()
207 return Context.getQualifiedType(desugar, split.Quals); in getSingleStepDesugaredTypeImpl()
249 Qualifiers quals = split.Quals; in getSplitUnqualifiedTypeImpl()
274 if (!split.Quals.empty()) { in getSplitUnqualifiedTypeImpl()
276 quals.addConsistentQualifiers(split.Quals); in getSplitUnqualifiedTypeImpl()
DDeclCXX.cpp417 Qualifiers Quals; in getCopyAssignmentOperator() local
425 Quals = ArgType.getQualifiers(); in getCopyAssignmentOperator()
429 Quals = Qualifiers::fromCVRMask(Qualifiers::Const); in getCopyAssignmentOperator()
436 Found.push_back(std::make_pair(const_cast<CXXMethodDecl *>(Method), Quals)); in getCopyAssignmentOperator()
DExprConstant.cpp1484 Qualifiers Quals = T.getQualifiers(); in IsConstNonVolatile() local
1485 return Quals.hasConst() && !Quals.hasVolatile(); in IsConstNonVolatile()
/external/clang/lib/Sema/
DSemaType.cpp1005 Qualifiers Quals = Qualifiers::fromCVRMask(TypeQuals); in ConvertDeclSpecToType() local
1006 Result = Context.getQualifiedType(Result, Quals); in ConvertDeclSpecToType()
1244 Expr *ArraySize, unsigned Quals, in BuildArrayType() argument
1334 T = Context.getVariableArrayType(T, 0, ASM, Quals, Brackets); in BuildArrayType()
1336 T = Context.getIncompleteArrayType(T, ASM, Quals); in BuildArrayType()
1338 T = Context.getDependentSizedArrayType(T, ArraySize, ASM, Quals, Brackets); in BuildArrayType()
1354 T = Context.getVariableArrayType(T, ArraySize, ASM, Quals, Brackets); in BuildArrayType()
1392 T = Context.getConstantArrayType(T, ConstVal, ASM, Quals); in BuildArrayType()
1414 } else if (ASM != ArrayType::Normal || Quals != 0) in BuildArrayType()
1495 unsigned Quals, in BuildFunctionType() argument
[all …]
DSemaLookup.cpp2430 unsigned Quals) { in LookupCopyingConstructor() argument
2431 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingConstructor()
2434 LookupSpecialMember(Class, CXXCopyConstructor, Quals & Qualifiers::Const, in LookupCopyingConstructor()
2435 Quals & Qualifiers::Volatile, false, false, false); in LookupCopyingConstructor()
2442 unsigned Quals) { in LookupMovingConstructor() argument
2444 LookupSpecialMember(Class, CXXMoveConstructor, Quals & Qualifiers::Const, in LookupMovingConstructor()
2445 Quals & Qualifiers::Volatile, false, false, false); in LookupMovingConstructor()
2469 unsigned Quals, bool RValueThis, in LookupCopyingAssignment() argument
2471 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment()
2476 LookupSpecialMember(Class, CXXCopyAssignment, Quals & Qualifiers::Const, in LookupCopyingAssignment()
[all …]
DSemaTemplateDeduction.cpp947 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() local
948 QualType UnqualParam = S.Context.getUnqualifiedArrayType(Param, Quals); in DeduceTemplateArgumentsByTypeMatch()
949 Quals.setCVRQualifiers(Quals.getCVRQualifiers() & in DeduceTemplateArgumentsByTypeMatch()
951 Param = S.Context.getQualifiedType(UnqualParam, Quals); in DeduceTemplateArgumentsByTypeMatch()
997 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() local
998 Arg = S.Context.getUnqualifiedArrayType(Arg, Quals); in DeduceTemplateArgumentsByTypeMatch()
999 if (Quals) { in DeduceTemplateArgumentsByTypeMatch()
1000 Arg = S.Context.getQualifiedType(Arg, Quals); in DeduceTemplateArgumentsByTypeMatch()
DSemaExprCXX.cpp298 Qualifiers Quals; in BuildCXXTypeId() local
301 Quals); in BuildCXXTypeId()
353 Qualifiers Quals; in BuildCXXTypeId() local
354 QualType UnqualT = Context.getUnqualifiedArrayType(T, Quals); in BuildCXXTypeId()
4521 Qualifiers Quals = Qualifiers::fromCVRMask(*I); in FindCompositePointerType() local
4525 Context.getQualifiedType(Composite1, Quals), in FindCompositePointerType()
4528 Context.getQualifiedType(Composite2, Quals), in FindCompositePointerType()
4533 = Context.getPointerType(Context.getQualifiedType(Composite1, Quals)); in FindCompositePointerType()
4535 = Context.getPointerType(Context.getQualifiedType(Composite2, Quals)); in FindCompositePointerType()
DSemaOverload.cpp1847 Qualifiers Quals = CanonFromPointee.getQualifiers(); in BuildSimilarlyQualifiedPointerType() local
1850 Quals.removeObjCLifetime(); in BuildSimilarlyQualifiedPointerType()
1853 if (CanonToPointee.getLocalQualifiers() == Quals) { in BuildSimilarlyQualifiedPointerType()
1867 = Context.getQualifiedType(CanonToPointee.getLocalUnqualifiedType(), Quals); in BuildSimilarlyQualifiedPointerType()
3290 Qualifiers Quals; in hasSimilarType() local
3291 T1 = Context.getUnqualifiedArrayType(T1, Quals); in hasSimilarType()
3292 T2 = Context.getUnqualifiedArrayType(T2, Quals); in hasSimilarType()
4589 unsigned Quals = isa<CXXDestructorDecl>(Method) ? in TryObjectArgumentInitialization() local
4591 QualType ImplicitParamType = S.Context.getCVRQualifiedType(ClassType, Quals); in TryObjectArgumentInitialization()
4658 if (!FromClassification.isLValue() && Quals != Qualifiers::Const) { in TryObjectArgumentInitialization()
DSemaDeclCXX.cpp4289 unsigned Quals) { in lookupIn()
4293 Quals = 0; in lookupIn()
4295 ConstArg || (Quals & Qualifiers::Const), in lookupIn()
4296 VolatileArg || (Quals & Qualifiers::Volatile), in lookupIn()
4309 unsigned Quals);
4392 CXXRecordDecl *Class, Subobject Subobj, unsigned Quals) { in shouldDeleteForClassSubobject() argument
4411 shouldDeleteForSubobjectCall(Subobj, lookupIn(Class, Quals), false)) in shouldDeleteForClassSubobject()
8589 unsigned Quals = T->getArgType(0).getNonReferenceType().getCVRQualifiers(); in ComputeDefaultedCopyCtorExceptionSpec() local
8605 LookupCopyingConstructor(BaseClassDecl, Quals)) in ComputeDefaultedCopyCtorExceptionSpec()
8615 LookupCopyingConstructor(BaseClassDecl, Quals)) in ComputeDefaultedCopyCtorExceptionSpec()
[all …]
DTreeTransform.h706 unsigned Quals,
3315 Qualifiers Quals = T.getType().getLocalQualifiers(); in TransformQualifiedType() local
3329 if (Quals.hasObjCLifetime()) { in TransformQualifiedType()
3331 Quals.removeObjCLifetime(); in TransformQualifiedType()
3355 Quals.removeObjCLifetime(); in TransformQualifiedType()
3359 if (!Quals.empty()) { in TransformQualifiedType()
3360 Result = SemaRef.BuildQualifiedType(Result, T.getBeginLoc(), Quals); in TransformQualifiedType()
8997 unsigned Quals, in RebuildFunctionProtoType() argument
9001 HasTrailingReturn, Quals, RefQualifier, in RebuildFunctionProtoType()
DSemaObjCProperty.cpp566 if (split.Quals.hasObjCLifetime()) { in checkARCPropertyImpl()
568 split.Quals.setObjCLifetime(Qualifiers::OCL_Strong); in checkARCPropertyImpl()
DSemaCodeComplete.cpp227 void setObjectTypeQualifiers(Qualifiers Quals) { in setObjectTypeQualifiers() argument
228 ObjectTypeQualifiers = Quals; in setObjectTypeQualifiers()
6106 std::string Quals = formatObjCParamQualifiers(ObjCDeclQuals); in AddObjCPassingTypeChunk() local
6107 if (!Quals.empty()) in AddObjCPassingTypeChunk()
6108 Builder.AddTextChunk(Builder.getAllocator().CopyString(Quals)); in AddObjCPassingTypeChunk()
/external/clang/include/clang/Sema/
DSema.h863 Expr *ArraySize, unsigned Quals,
870 unsigned Quals, RefQualifierKind RefQualifier,
2154 unsigned Quals);
2155 CXXMethodDecl *LookupCopyingAssignment(CXXRecordDecl *Class, unsigned Quals,
2158 unsigned Quals);
2159 CXXMethodDecl *LookupMovingAssignment(CXXRecordDecl *Class, unsigned Quals,

12