Home
last modified time | relevance | path

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

12

/external/clang/lib/CodeGen/
DCGValue.h133 Qualifiers Quals; variable
170 void Initialize(QualType Type, Qualifiers Quals,
174 this->Quals = Quals;
198 bool isVolatileQualified() const { return Quals.hasVolatile(); } in isVolatileQualified()
199 bool isRestrictQualified() const { return Quals.hasRestrict(); } in isRestrictQualified()
201 return Quals.getCVRQualifiers() & ~Qualifiers::Const; in getVRQualifiers()
207 return Quals.getObjCLifetime(); in getObjCLifetime()
233 return Quals.getObjCGCAttr() == Qualifiers::Weak; in isObjCWeak()
236 return Quals.getObjCGCAttr() == Qualifiers::Strong; in isObjCStrong()
240 return Quals.hasVolatile(); in isVolatile()
[all …]
DItaniumCXXABI.cpp2188 Qualifiers Quals = PointeeTy.getQualifiers(); in TypeInfoIsInStandardLibrary() local
2189 Quals.removeConst(); in TypeInfoIsInStandardLibrary()
2191 if (!Quals.empty()) in TypeInfoIsInStandardLibrary()
2658 static unsigned ComputeQualifierFlags(Qualifiers Quals) { in ComputeQualifierFlags() argument
2661 if (Quals.hasConst()) in ComputeQualifierFlags()
2663 if (Quals.hasVolatile()) in ComputeQualifierFlags()
2665 if (Quals.hasRestrict()) in ComputeQualifierFlags()
2847 Qualifiers Quals; in BuildPointerTypeInfo() local
2849 CGM.getContext().getUnqualifiedArrayType(PointeeTy, Quals); in BuildPointerTypeInfo()
2854 unsigned Flags = ComputeQualifierFlags(Quals); in BuildPointerTypeInfo()
[all …]
DCGDebugInfo.cpp1978 Qualifiers Quals; in UnwrapTypeForDebugInfo() local
1983 Quals += Qualifiers::removeCommonQualifiers(Quals, InnerQuals); in UnwrapTypeForDebugInfo()
1984 Quals += InnerQuals; in UnwrapTypeForDebugInfo()
1988 return C.getQualifiedType(T.getTypePtr(), Quals); in UnwrapTypeForDebugInfo()
1992 return C.getQualifiedType(T.getTypePtr(), Quals); in UnwrapTypeForDebugInfo()
DCGExpr.cpp147 Qualifiers Quals, in EmitAnyExprToMem() argument
159 EmitAggExpr(E, AggValueSlot::forAddr(Location, Alignment, Quals, in EmitAnyExprToMem()
DCodeGenFunction.h1443 Qualifiers Quals, bool IsInitializer);
/external/clang/lib/AST/
DTypePrinter.cpp137 print(split.Ty, split.Quals, OS, PlaceHolder); in print()
140 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS, in print() argument
149 printBefore(T, Quals, OS); in print()
151 printAfter(T, Quals, OS); in print()
235 Qualifiers Quals = Split.Quals; in printBefore() local
238 Quals -= QualType(Subst, 0).getQualifiers(); in printBefore()
240 printBefore(Split.Ty, Quals, OS); in printBefore()
245 void TypePrinter::printBefore(const Type *T,Qualifiers Quals, raw_ostream &OS) { in printBefore() argument
257 if (CanPrefixQualifiers && !Quals.empty()) { in printBefore()
260 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/true); in printBefore()
[all …]
DMicrosoftMangle.cpp248 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() argument
1243 bool HasConst = Quals.hasConst(), in mangleQualifiers()
1244 HasVolatile = Quals.hasVolatile(); in mangleQualifiers()
1290 MicrosoftCXXNameMangler::manglePointerExtQualifiers(Qualifiers Quals, in manglePointerExtQualifiers() argument
1292 bool HasRestrict = Quals.hasRestrict(); in manglePointerExtQualifiers()
1300 void MicrosoftCXXNameMangler::manglePointerCVQualifiers(Qualifiers Quals) { in manglePointerCVQualifiers() argument
1305 bool HasConst = Quals.hasConst(), in manglePointerCVQualifiers()
[all …]
DItaniumMangle.cpp352 void mangleQualifiers(Qualifiers Quals);
1741 void CXXNameMangler::mangleQualifiers(Qualifiers Quals) { in mangleQualifiers() argument
1743 if (Quals.hasRestrict()) in mangleQualifiers()
1745 if (Quals.hasVolatile()) in mangleQualifiers()
1747 if (Quals.hasConst()) in mangleQualifiers()
1750 if (Quals.hasAddressSpace()) { in mangleQualifiers()
1758 unsigned AS = Quals.getAddressSpace(); in mangleQualifiers()
1781 switch (Quals.getObjCLifetime()) { in mangleQualifiers()
1875 Qualifiers quals = split.Quals; in mangleType()
DASTContext.cpp2019 canonSplit.Quals.addConsistentQualifiers(quals); in getExtQualType()
2020 canon = getExtQualType(canonSplit.Ty, canonSplit.Quals); in getExtQualType()
2039 QualifierCollector Quals; in getAddrSpaceQualType() local
2040 const Type *TypeNode = Quals.strip(T); in getAddrSpaceQualType()
2044 assert(!Quals.hasAddressSpace() && in getAddrSpaceQualType()
2046 Quals.addAddressSpace(AddressSpace); in getAddrSpaceQualType()
2048 return getExtQualType(TypeNode, Quals); in getAddrSpaceQualType()
2067 QualifierCollector Quals; in getObjCGCQualType() local
2068 const Type *TypeNode = Quals.strip(T); in getObjCGCQualType()
2072 assert(!Quals.hasObjCGCAttr() && in getObjCGCQualType()
[all …]
DExprCXX.cpp45 Qualifiers Quals; in getTypeOperand() local
47 Operand.get<TypeSourceInfo *>()->getType().getNonReferenceType(), Quals); in getTypeOperand()
52 Qualifiers Quals; in getTypeOperand() local
54 Operand.get<TypeSourceInfo *>()->getType().getNonReferenceType(), Quals); in getTypeOperand()
DType.cpp221 return Context.getQualifiedType(split.Ty, split.Quals); in getDesugaredType()
228 return Context.getQualifiedType(desugar, split.Quals); in getSingleStepDesugaredTypeImpl()
270 Qualifiers quals = split.Quals; in getSplitUnqualifiedTypeImpl()
295 if (!split.Quals.empty()) { in getSplitUnqualifiedTypeImpl()
297 quals.addConsistentQualifiers(split.Quals); in getSplitUnqualifiedTypeImpl()
DDeclCXX.cpp509 unsigned Quals; in addedMember() local
510 if (Constructor->isCopyConstructor(Quals)) { in addedMember()
513 if (Quals & Qualifiers::Const) in addedMember()
/external/clang/include/clang/AST/
DType.h348 Qualifiers Quals = *this;
349 Quals.setFastQualifiers(0);
350 return Quals;
500 Qualifiers Quals;
502 SplitQualType() : Ty(nullptr), Quals() {}
503 SplitQualType(const Type *ty, Qualifiers qs) : Ty(ty), Quals(qs) {}
509 return std::pair<const Type *, Qualifiers>(Ty, Quals);
513 return a.Ty == b.Ty && a.Quals == b.Quals;
516 return a.Ty != b.Ty || a.Quals != b.Quals;
557 QualType(const Type *Ptr, unsigned Quals)
[all …]
DASTContext.h861 QualType getExtQualType(const Type *Base, Qualifiers Quals) const;
1505 return getQualifiedType(split.Ty, split.Quals); in getQualifiedType()
1802 QualType getUnqualifiedArrayType(QualType T, Qualifiers &Quals);
DDeclCXX.h2288 unsigned Quals; in isCopyOrMoveConstructor() local
2289 return isCopyOrMoveConstructor(Quals); in isCopyOrMoveConstructor()
/external/clang/lib/Sema/
DSemaType.cpp1133 QualLoc Quals[] = { in ConvertDeclSpecToType() local
1138 for (unsigned I = 0, N = llvm::array_lengthof(Quals); I != N; ++I) { in ConvertDeclSpecToType()
1140 if (TypeQuals & Quals[I].first) in ConvertDeclSpecToType()
1141 S.Diag(Quals[I].second, diag::warn_typecheck_reference_qualifiers) in ConvertDeclSpecToType()
1142 << DeclSpec::getSpecifierName(Quals[I].first) << Result in ConvertDeclSpecToType()
1143 << FixItHint::CreateRemoval(Quals[I].second); in ConvertDeclSpecToType()
1145 TypeQuals &= ~Quals[I].first; in ConvertDeclSpecToType()
1251 Split.Quals.addCVRQualifiers(CVR); in BuildQualifiedType()
1252 return BuildQualifiedType(T, Loc, Split.Quals); in BuildQualifiedType()
1316 std::string Quals = in getFunctionQualifiersAsString() local
[all …]
DSemaLookup.cpp2557 unsigned Quals) { in LookupCopyingConstructor() argument
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()
2569 unsigned Quals) { in LookupMovingConstructor() argument
2571 LookupSpecialMember(Class, CXXMoveConstructor, Quals & Qualifiers::Const, in LookupMovingConstructor()
2572 Quals & Qualifiers::Volatile, false, false, false); in LookupMovingConstructor()
2596 unsigned Quals, bool RValueThis, in LookupCopyingAssignment() argument
2598 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment()
2603 LookupSpecialMember(Class, CXXCopyAssignment, Quals & Qualifiers::Const, in LookupCopyingAssignment()
[all …]
DSemaTemplateDeduction.cpp1061 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() local
1062 QualType UnqualParam = S.Context.getUnqualifiedArrayType(Param, Quals); in DeduceTemplateArgumentsByTypeMatch()
1063 Quals.setCVRQualifiers(Quals.getCVRQualifiers() & in DeduceTemplateArgumentsByTypeMatch()
1065 Param = S.Context.getQualifiedType(UnqualParam, Quals); in DeduceTemplateArgumentsByTypeMatch()
1111 Qualifiers Quals; in DeduceTemplateArgumentsByTypeMatch() local
1112 Arg = S.Context.getUnqualifiedArrayType(Arg, Quals); in DeduceTemplateArgumentsByTypeMatch()
1113 if (Quals) { in DeduceTemplateArgumentsByTypeMatch()
1114 Arg = S.Context.getQualifiedType(Arg, Quals); in DeduceTemplateArgumentsByTypeMatch()
DSemaExprCXX.cpp375 Qualifiers Quals; in BuildCXXTypeId() local
378 Quals); in BuildCXXTypeId()
429 Qualifiers Quals; in BuildCXXTypeId() local
430 QualType UnqualT = Context.getUnqualifiedArrayType(T, Quals); in BuildCXXTypeId()
4757 Qualifiers Quals = Qualifiers::fromCVRMask(*I); in FindCompositePointerType() local
4761 Context.getQualifiedType(Composite1, Quals), in FindCompositePointerType()
4764 Context.getQualifiedType(Composite2, Quals), in FindCompositePointerType()
4769 = Context.getPointerType(Context.getQualifiedType(Composite1, Quals)); in FindCompositePointerType()
4771 = Context.getPointerType(Context.getQualifiedType(Composite2, Quals)); in FindCompositePointerType()
DSemaDeclCXX.cpp4685 unsigned Quals, bool ConstRHS) { in specialMemberIsConstexpr() argument
4687 lookupCallFromSpecialMember(S, ClassDecl, CSM, Quals, ConstRHS); in specialMemberIsConstexpr()
5118 unsigned Quals, bool IsMutable) { in lookupIn()
5119 return lookupCallFromSpecialMember(S, Class, CSM, Quals, in lookupIn()
5130 unsigned Quals);
5213 CXXRecordDecl *Class, Subobject Subobj, unsigned Quals) { in shouldDeleteForClassSubobject() argument
5233 shouldDeleteForSubobjectCall(Subobj, lookupIn(Class, Quals, IsMutable), in shouldDeleteForClassSubobject()
5503 Sema::CXXSpecialMember CSM, unsigned Quals, in findTrivialSpecialMember() argument
5561 if (Quals == Qualifiers::Const) in findTrivialSpecialMember()
5581 if (Quals == Qualifiers::Const) in findTrivialSpecialMember()
[all …]
DSemaOverload.cpp1952 Qualifiers Quals = CanonFromPointee.getQualifiers(); in BuildSimilarlyQualifiedPointerType() local
1955 Quals.removeObjCLifetime(); in BuildSimilarlyQualifiedPointerType()
1958 if (CanonToPointee.getLocalQualifiers() == Quals) { in BuildSimilarlyQualifiedPointerType()
1972 = Context.getQualifiedType(CanonToPointee.getLocalUnqualifiedType(), Quals); in BuildSimilarlyQualifiedPointerType()
3414 Qualifiers Quals; in hasSimilarType() local
3415 T1 = Context.getUnqualifiedArrayType(T1, Quals); in hasSimilarType()
3416 T2 = Context.getUnqualifiedArrayType(T2, Quals); in hasSimilarType()
4725 unsigned Quals = isa<CXXDestructorDecl>(Method) ? in TryObjectArgumentInitialization() local
4727 QualType ImplicitParamType = S.Context.getCVRQualifiedType(ClassType, Quals); in TryObjectArgumentInitialization()
4793 if (!FromClassification.isLValue() && Quals != Qualifiers::Const) { in TryObjectArgumentInitialization()
DSemaObjCProperty.cpp671 if (split.Quals.hasObjCLifetime()) { in checkARCPropertyImpl()
673 split.Quals.setObjCLifetime(Qualifiers::OCL_Strong); in checkARCPropertyImpl()
DSemaCodeComplete.cpp232 void setObjectTypeQualifiers(Qualifiers Quals) { in setObjectTypeQualifiers() argument
233 ObjectTypeQualifiers = Quals; in setObjectTypeQualifiers()
6146 std::string Quals = formatObjCParamQualifiers(ObjCDeclQuals); in AddObjCPassingTypeChunk() local
6147 if (!Quals.empty()) in AddObjCPassingTypeChunk()
6148 Builder.AddTextChunk(Builder.getAllocator().CopyString(Quals)); in AddObjCPassingTypeChunk()
DTreeTransform.h3617 Qualifiers Quals = T.getType().getLocalQualifiers(); in TransformQualifiedType() local
3631 if (Quals.hasObjCLifetime()) { in TransformQualifiedType()
3633 Quals.removeObjCLifetime(); in TransformQualifiedType()
3668 Quals.removeObjCLifetime(); in TransformQualifiedType()
3672 if (!Quals.empty()) { in TransformQualifiedType()
3673 Result = SemaRef.BuildQualifiedType(Result, T.getBeginLoc(), Quals); in TransformQualifiedType()
/external/clang/include/clang/Sema/
DSema.h1118 Expr *ArraySize, unsigned Quals,
1560 diagnoseIgnoredQualifiers(unsigned DiagID, unsigned Quals,
2609 unsigned Quals);
2610 CXXMethodDecl *LookupCopyingAssignment(CXXRecordDecl *Class, unsigned Quals,
2613 unsigned Quals);
2614 CXXMethodDecl *LookupMovingAssignment(CXXRecordDecl *Class, unsigned Quals,

12