clang API Documentation
#include <Type.h>

Public Types | |
| enum | TQ { Const = 0x1, Restrict = 0x2, Volatile = 0x4, CVRMask = Const | Volatile | Restrict } |
| enum | GC { GCNone = 0, Weak, Strong } |
| enum | ObjCLifetime { OCL_None, OCL_ExplicitNone, OCL_Strong, OCL_Weak, OCL_Autoreleasing } |
| enum | { MaxAddressSpace = 0xffffffu, FastWidth = 3, FastMask = (1 << FastWidth) - 1 } |
Public Member Functions | |
| Qualifiers () | |
| unsigned | getAsOpaqueValue () const |
| bool | hasConst () const |
| void | setConst (bool flag) |
| void | removeConst () |
| void | addConst () |
| bool | hasVolatile () const |
| void | setVolatile (bool flag) |
| void | removeVolatile () |
| void | addVolatile () |
| bool | hasRestrict () const |
| void | setRestrict (bool flag) |
| void | removeRestrict () |
| void | addRestrict () |
| bool | hasCVRQualifiers () const |
| unsigned | getCVRQualifiers () const |
| void | setCVRQualifiers (unsigned mask) |
| void | removeCVRQualifiers (unsigned mask) |
| void | removeCVRQualifiers () |
| void | addCVRQualifiers (unsigned mask) |
| bool | hasObjCGCAttr () const |
| GC | getObjCGCAttr () const |
| void | setObjCGCAttr (GC type) |
| void | removeObjCGCAttr () |
| void | addObjCGCAttr (GC type) |
| Qualifiers | withoutObjCGCAttr () const |
| Qualifiers | withoutObjCLifetime () const |
| bool | hasObjCLifetime () const |
| ObjCLifetime | getObjCLifetime () const |
| void | setObjCLifetime (ObjCLifetime type) |
| void | removeObjCLifetime () |
| void | addObjCLifetime (ObjCLifetime type) |
| bool | hasNonTrivialObjCLifetime () const |
| True if the lifetime is neither None or ExplicitNone. | |
| bool | hasStrongOrWeakObjCLifetime () const |
| True if the lifetime is either strong or weak. | |
| bool | hasAddressSpace () const |
| unsigned | getAddressSpace () const |
| void | setAddressSpace (unsigned space) |
| void | removeAddressSpace () |
| void | addAddressSpace (unsigned space) |
| bool | hasFastQualifiers () const |
| unsigned | getFastQualifiers () const |
| void | setFastQualifiers (unsigned mask) |
| void | removeFastQualifiers (unsigned mask) |
| void | removeFastQualifiers () |
| void | addFastQualifiers (unsigned mask) |
| bool | hasNonFastQualifiers () const |
| Qualifiers | getNonFastQualifiers () const |
| bool | hasQualifiers () const |
| hasQualifiers - Return true if the set contains any qualifiers. | |
| bool | empty () const |
| void | addQualifiers (Qualifiers Q) |
| Add the qualifiers from the given set to this set. | |
| void | addConsistentQualifiers (Qualifiers qs) |
| Add the qualifiers from the given set to this set, given that they don't conflict. | |
| bool | compatiblyIncludes (Qualifiers other) const |
| Determines if these qualifiers compatibly include another set. Generally this answers the question of whether an object with the other qualifiers can be safely used as an object with these qualifiers. | |
| bool | compatiblyIncludesObjCLifetime (Qualifiers other) const |
| Determines if these qualifiers compatibly include another set of qualifiers from the narrow perspective of Objective-C ARC lifetime. | |
| bool | isSupersetOf (Qualifiers Other) const |
| bool | isStrictSupersetOf (Qualifiers Other) const |
| Determine whether this set of qualifiers is a strict superset of another set of qualifiers, not considering qualifier compatibility. | |
| bool | operator== (Qualifiers Other) const |
| bool | operator!= (Qualifiers Other) const |
| operator bool () const | |
| Qualifiers & | operator+= (Qualifiers R) |
| Qualifiers & | operator-= (Qualifiers R) |
| std::string | getAsString () const |
| std::string | getAsString (const PrintingPolicy &Policy) const |
| void | getAsStringInternal (std::string &S, const PrintingPolicy &Policy) const |
| void | Profile (llvm::FoldingSetNodeID &ID) const |
Static Public Member Functions | |
| static Qualifiers | fromFastMask (unsigned Mask) |
| static Qualifiers | fromCVRMask (unsigned CVR) |
| static Qualifiers | fromOpaqueValue (unsigned opaque) |
Friends | |
| Qualifiers | operator+ (Qualifiers L, Qualifiers R) |
| Qualifiers | operator- (Qualifiers L, Qualifiers R) |
| Compute the difference between two qualifier sets. | |
Qualifiers - The collection of all-type qualifiers we support. Clang supports five independent qualifiers: C99: const, volatile, and restrict Embedded C (TR18037): address spaces Objective C: the GC attributes (none, weak, or strong)
| anonymous enum |
| OCL_None |
There is no lifetime qualification on this type. |
| OCL_ExplicitNone |
This object can be modified without requiring retains or releases. |
| OCL_Strong |
Assigning into this object requires the old value to be released and the new value to be retained. The timing of the release of the old value is inexact: it may be moved to immediately after the last known point where the value is live. |
| OCL_Weak |
Reading or writing from this object requires a barrier call. |
| OCL_Autoreleasing |
Assigning into this object requires a lifetime extension. |
| void clang::Qualifiers::addAddressSpace | ( | unsigned | space | ) | [inline] |
Definition at line 279 of file Type.h.
References setAddressSpace().
Referenced by addQualifiers(), and clang::ASTContext::getAddrSpaceQualType().
| void clang::Qualifiers::addConsistentQualifiers | ( | Qualifiers | qs | ) | [inline] |
Add the qualifiers from the given set to this set, given that they don't conflict.
Definition at line 336 of file Type.h.
References getAddressSpace(), getObjCGCAttr(), getObjCLifetime(), hasAddressSpace(), hasObjCGCAttr(), and hasObjCLifetime().
Referenced by clang::ASTContext::getBaseElementType(), clang::SplitQualType::getSingleStepDesugaredType(), and clang::ASTContext::getUnqualifiedArrayType().
| void clang::Qualifiers::addConst | ( | ) | [inline] |
Definition at line 190 of file Type.h.
References Const.
Referenced by clang::Sema::AddBuiltinOperatorCandidates().
| void clang::Qualifiers::addCVRQualifiers | ( | unsigned | mask | ) | [inline] |
Definition at line 219 of file Type.h.
References CVRMask.
Referenced by clang::CodeGen::CodeGenFunction::EmitLValueForField(), clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(), and fromCVRMask().
| void clang::Qualifiers::addFastQualifiers | ( | unsigned | mask | ) | [inline] |
Definition at line 299 of file Type.h.
References FastMask.
Referenced by clang::QualType::addConst(), clang::QualType::addRestrict(), clang::QualType::addVolatile(), fromFastMask(), clang::QualType::getLocalQualifiers(), clang::QualType::getQualifiers(), and clang::QualType::split().
| void clang::Qualifiers::addObjCGCAttr | ( | GC | type | ) | [inline] |
Definition at line 230 of file Type.h.
References setObjCGCAttr().
Referenced by addQualifiers(), and clang::ASTContext::getObjCGCQualType().
| void clang::Qualifiers::addObjCLifetime | ( | ObjCLifetime | type | ) | [inline] |
Definition at line 253 of file Type.h.
References hasObjCLifetime().
Referenced by clang::Sema::ActOnPropertyImplDecl(), addQualifiers(), clang::ASTContext::getLifetimeQualifiedType(), handleObjCOwnershipTypeAttr(), inferARCLifetimeForPointee(), inferARCWriteback(), and transferARCOwnershipToDeclSpec().
| void clang::Qualifiers::addQualifiers | ( | Qualifiers | Q | ) | [inline] |
Add the qualifiers from the given set to this set.
Definition at line 318 of file Type.h.
References addAddressSpace(), addObjCGCAttr(), addObjCLifetime(), CVRMask, getAddressSpace(), getObjCGCAttr(), getObjCLifetime(), hasAddressSpace(), hasObjCGCAttr(), and hasObjCLifetime().
Referenced by operator+=().
| void clang::Qualifiers::addRestrict | ( | ) | [inline] |
Definition at line 204 of file Type.h.
References Restrict.
Referenced by clang::CollectVRQualifiers().
| void clang::Qualifiers::addVolatile | ( | ) | [inline] |
Definition at line 197 of file Type.h.
References Volatile.
Referenced by clang::CollectVRQualifiers().
| bool clang::Qualifiers::compatiblyIncludes | ( | Qualifiers | other | ) | const [inline] |
Determines if these qualifiers compatibly include another set. Generally this answers the question of whether an object with the other qualifiers can be safely used as an object with these qualifiers.
Definition at line 349 of file Type.h.
References CVRMask, getAddressSpace(), getObjCGCAttr(), getObjCLifetime(), and hasObjCGCAttr().
Referenced by clang::AdoptQualifiers(), CheckOriginalCallArgDeduction(), checkPointerTypesForAssignment(), clang::Sema::CompareReferenceRelationship(), clang::QualType::isMoreQualifiedThan(), clang::Sema::isObjCWritebackConversion(), clang::Sema::IsQualificationConversion(), clang::TryReferenceInit(), and TryStaticCast().
| bool clang::Qualifiers::compatiblyIncludesObjCLifetime | ( | Qualifiers | other | ) | const [inline] |
Determines if these qualifiers compatibly include another set of qualifiers from the narrow perspective of Objective-C ARC lifetime.
One set of Objective-C lifetime qualifiers compatibly includes the other if the lifetime qualifiers match, or if both are non-__weak and the including set also contains the 'const' qualifier.
Definition at line 369 of file Type.h.
References getObjCLifetime(), hasConst(), and OCL_Weak.
Referenced by CastsAwayConstness(), checkPointerTypesForAssignment(), clang::Sema::CompareReferenceRelationship(), and clang::Sema::IsQualificationConversion().
| bool clang::Qualifiers::empty | ( | ) | const [inline] |
Definition at line 315 of file Type.h.
Referenced by clang::Sema::CheckMain(), clang::ASTContext::getAsArrayType(), clang::ASTContext::getUnqualifiedArrayType(), clang::Sema::isObjCWritebackConversion(), and TypeInfoIsInStandardLibrary().
| static Qualifiers clang::Qualifiers::fromCVRMask | ( | unsigned | CVR | ) | [inline, static] |
Definition at line 167 of file Type.h.
References addCVRQualifiers().
Referenced by clang::Sema::BuildQualifiedType(), clang::Sema::CodeCompleteOrdinaryName(), clang::PredefinedExpr::ComputeName(), clang::Sema::FindCompositePointerType(), clang::CXXRecordDecl::getCopyAssignmentOperator(), clang::CXXRecordDecl::getCopyConstructor(), clang::ASTContext::getCVRQualifiedType(), GetFullTypeForDeclarator(), clang::ArrayType::getIndexTypeQualifiers(), clang::CXXMethodDecl::getThisType(), and MaybeAddImplicitObjectParameterType().
| static Qualifiers clang::Qualifiers::fromFastMask | ( | unsigned | Mask | ) | [inline, static] |
Definition at line 161 of file Type.h.
References addFastQualifiers().
Referenced by clang::QualType::split().
| static Qualifiers clang::Qualifiers::fromOpaqueValue | ( | unsigned | opaque | ) | [inline, static] |
| unsigned clang::Qualifiers::getAddressSpace | ( | ) | const [inline] |
Definition at line 272 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), checkPointerTypesForAssignment(), compatiblyIncludes(), clang::Sema::DiagnoseAssignmentResult(), clang::CodeGen::LValue::getAddressSpace(), getAsStringInternal(), clang::ASTContext::getTargetAddressSpace(), hasInconsistentOrSupersetQualifiersOf(), isStrictSupersetOf(), clang::ASTContext::mergeObjCGCQualifiers(), and clang::ASTContext::mergeTypes().
| unsigned clang::Qualifiers::getAsOpaqueValue | ( | ) | const [inline] |
| std::string Qualifiers::getAsString | ( | ) | const |
Definition at line 1154 of file TypePrinter.cpp.
Referenced by clang::Sema::BuildCallToMemberFunction(), and clang::QualType::getAsString().
| std::string clang::Qualifiers::getAsString | ( | const PrintingPolicy & | Policy | ) | const [inline] |
Definition at line 414 of file Type.h.
References getAsStringInternal().
| void Qualifiers::getAsStringInternal | ( | std::string & | S, |
| const PrintingPolicy & | Policy | ||
| ) | const |
Definition at line 1162 of file TypePrinter.cpp.
References AppendTypeQualList(), getAddressSpace(), getCVRQualifiers(), getObjCGCAttr(), getObjCLifetime(), OCL_Autoreleasing, OCL_ExplicitNone, OCL_None, OCL_Strong, OCL_Weak, clang::LangAS::opencl_constant, clang::LangAS::opencl_global, clang::LangAS::opencl_local, clang::PrintingPolicy::SuppressStrongLifetime, and Weak.
Referenced by getAsString(), clang::QualType::getAsString(), and clang::QualType::getAsStringInternal().
| unsigned clang::Qualifiers::getCVRQualifiers | ( | ) | const [inline] |
Definition at line 207 of file Type.h.
References CVRMask.
Referenced by CastsAwayConstness(), DeduceTemplateArgumentsByTypeMatch(), clang::CodeGen::CodeGenFunction::EmitExtVectorElementExpr(), clang::CodeGen::CodeGenFunction::EmitMemberExpr(), clang::CodeGen::CodeGenFunction::EmitObjCIvarRefLValue(), getAsStringInternal(), clang::CodeGen::LValue::getVRQualifiers(), hasCVRQualifiers(), hasInconsistentOrSupersetQualifiersOf(), hasMangledSubstitutionQualifiers(), clang::Sema::IsQualificationConversion(), clang::ASTContext::mergeObjCGCQualifiers(), clang::ASTContext::mergeTypes(), clang::Sema::PerformObjectArgumentInitialization(), and TryReferenceInitializationCore().
| unsigned clang::Qualifiers::getFastQualifiers | ( | ) | const [inline] |
Definition at line 287 of file Type.h.
References FastMask.
Referenced by clang::QualifierCollector::apply(), clang::ASTContext::getQualifiedType(), and hasFastQualifiers().
| Qualifiers clang::Qualifiers::getNonFastQualifiers | ( | ) | const [inline] |
Definition at line 307 of file Type.h.
References setFastQualifiers().
| GC clang::Qualifiers::getObjCGCAttr | ( | ) | const [inline] |
Definition at line 225 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), compatiblyIncludes(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), getAsStringInternal(), hasInconsistentOrSupersetQualifiersOf(), clang::QualType::isObjCGCStrong(), clang::QualType::isObjCGCWeak(), clang::CodeGen::LValue::isObjCStrong(), clang::CodeGen::LValue::isObjCWeak(), clang::Sema::IsQualificationConversion(), isStrictSupersetOf(), clang::ASTContext::mergeObjCGCQualifiers(), and clang::ASTContext::mergeTypes().
| ObjCLifetime clang::Qualifiers::getObjCLifetime | ( | ) | const [inline] |
Definition at line 246 of file Type.h.
Referenced by clang::Sema::ActOnForEachDeclStmt(), addConsistentQualifiers(), addQualifiers(), checkPointerTypesForAssignment(), clang::Sema::CompareReferenceRelationship(), compatiblyIncludes(), compatiblyIncludesObjCLifetime(), clang::Sema::DiagnoseAssignmentResult(), clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(), clang::CodeGen::CodeGenFunction::EmitParmDecl(), clang::CodeGen::CodeGenFunction::EmitStoreThroughLValue(), clang::CodeGen::CodeGenFunction::GenerateCopyHelperFunction(), clang::CodeGen::CodeGenFunction::GenerateDestroyHelperFunction(), clang::CodeGen::CodeGenFunction::generateObjCGetterBody(), getAsStringInternal(), clang::CodeGen::LValue::getObjCLifetime(), clang::CodeGen::AggValueSlot::getObjCLifetime(), handleObjCOwnershipTypeAttr(), hasInconsistentOrSupersetQualifiersOf(), hasNonTrivialObjCLifetime(), hasStrongOrWeakObjCLifetime(), InitCatchParam(), clang::Sema::isObjCWritebackConversion(), clang::Sema::IsQualificationConversion(), isStrictSupersetOf(), and clang::ASTContext::mergeTypes().
| bool clang::Qualifiers::hasAddressSpace | ( | ) | const [inline] |
Definition at line 271 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), BuildFieldReferenceExpr(), DeduceTemplateArgumentsByTypeMatch(), clang::ASTContext::getAddrSpaceQualType(), hasInconsistentOrSupersetQualifiersOf(), hasMangledSubstitutionQualifiers(), and isStrictSupersetOf().
| bool clang::Qualifiers::hasConst | ( | ) | const [inline] |
Definition at line 185 of file Type.h.
References Const.
Referenced by compatiblyIncludesObjCLifetime(), clang::PredefinedExpr::ComputeName(), ComputeQualifierFlags(), clang::CodeGen::CodeGenFunction::EmitParmDecl(), IsConstNonVolatile(), clang::Sema::IsQualificationConversion(), TryReferenceInitializationCore(), and TryReferenceListInitialization().
| bool clang::Qualifiers::hasCVRQualifiers | ( | ) | const [inline] |
Definition at line 206 of file Type.h.
References getCVRQualifiers().
| bool clang::Qualifiers::hasFastQualifiers | ( | ) | const [inline] |
Definition at line 286 of file Type.h.
References getFastQualifiers().
Referenced by clang::ExtQuals::Profile().
| bool clang::Qualifiers::hasNonFastQualifiers | ( | ) | const [inline] |
hasNonFastQualifiers - Return true if the set contains any qualifiers which require an ExtQuals node to be allocated.
Definition at line 306 of file Type.h.
References FastMask.
Referenced by clang::QualifierCollector::apply(), and clang::ASTContext::getQualifiedType().
| bool clang::Qualifiers::hasNonTrivialObjCLifetime | ( | ) | const [inline] |
True if the lifetime is neither None or ExplicitNone.
Definition at line 260 of file Type.h.
References getObjCLifetime(), and OCL_ExplicitNone.
| bool clang::Qualifiers::hasObjCGCAttr | ( | ) | const [inline] |
Definition at line 224 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), compatiblyIncludes(), DeduceTemplateArgumentsByTypeMatch(), clang::ASTContext::getObjCGCQualType(), hasInconsistentOrSupersetQualifiersOf(), clang::Sema::IsQualificationConversion(), and isStrictSupersetOf().
| bool clang::Qualifiers::hasObjCLifetime | ( | ) | const [inline] |
Definition at line 245 of file Type.h.
Referenced by addConsistentQualifiers(), addObjCLifetime(), addQualifiers(), DeduceTemplateArgumentsByTypeMatch(), handleObjCOwnershipTypeAttr(), hasDirectOwnershipQualifier(), hasInconsistentOrSupersetQualifiersOf(), and isStrictSupersetOf().
| bool clang::Qualifiers::hasQualifiers | ( | ) | const [inline] |
hasQualifiers - Return true if the set contains any qualifiers.
Definition at line 314 of file Type.h.
Referenced by operator bool().
| bool clang::Qualifiers::hasRestrict | ( | ) | const [inline] |
Definition at line 199 of file Type.h.
References Restrict.
Referenced by clang::Sema::BuildQualifiedType(), clang::CollectVRQualifiers(), ComputeQualifierFlags(), and clang::CodeGen::LValue::isRestrictQualified().
| bool clang::Qualifiers::hasStrongOrWeakObjCLifetime | ( | ) | const [inline] |
True if the lifetime is either strong or weak.
Definition at line 266 of file Type.h.
References getObjCLifetime(), OCL_Strong, and OCL_Weak.
Referenced by clang::CodeGen::CodeGenFunction::GenerateCopyHelperFunction(), and clang::CodeGen::CodeGenFunction::GenerateDestroyHelperFunction().
| bool clang::Qualifiers::hasVolatile | ( | ) | const [inline] |
Definition at line 192 of file Type.h.
References Volatile.
Referenced by clang::CollectVRQualifiers(), clang::PredefinedExpr::ComputeName(), ComputeQualifierFlags(), clang::CodeGen::CodeGenFunction::EmitAnyExprToMem(), IsConstNonVolatile(), clang::CodeGen::LValue::isVolatile(), clang::CodeGen::AggValueSlot::isVolatile(), clang::CodeGen::LValue::isVolatileQualified(), TryReferenceInitializationCore(), and TryReferenceListInitialization().
| bool Qualifiers::isStrictSupersetOf | ( | Qualifiers | Other | ) | const |
Determine whether this set of qualifiers is a strict superset of another set of qualifiers, not considering qualifier compatibility.
Definition at line 30 of file Type.cpp.
References CVRMask, getAddressSpace(), getObjCGCAttr(), getObjCLifetime(), hasAddressSpace(), hasObjCGCAttr(), and hasObjCLifetime().
Referenced by DeduceTemplateArgumentsByTypeMatch().
| bool clang::Qualifiers::isSupersetOf | ( | Qualifiers | Other | ) | const |
| clang::Qualifiers::operator bool | ( | ) | const [inline] |
Definition at line 388 of file Type.h.
References hasQualifiers().
| bool clang::Qualifiers::operator!= | ( | Qualifiers | Other | ) | const [inline] |
| Qualifiers& clang::Qualifiers::operator+= | ( | Qualifiers | R | ) | [inline] |
Definition at line 390 of file Type.h.
References addQualifiers().
| Qualifiers& clang::Qualifiers::operator-= | ( | Qualifiers | R | ) | [inline] |
| bool clang::Qualifiers::operator== | ( | Qualifiers | Other | ) | const [inline] |
| void clang::Qualifiers::Profile | ( | llvm::FoldingSetNodeID & | ID | ) | const [inline] |
Definition at line 421 of file Type.h.
Referenced by clang::ExtQuals::Profile().
| void clang::Qualifiers::removeAddressSpace | ( | ) | [inline] |
Definition at line 278 of file Type.h.
References setAddressSpace().
Referenced by clang::Sema::BuildCallToMemberFunction(), and DeduceTemplateArgumentsByTypeMatch().
| void clang::Qualifiers::removeConst | ( | ) | [inline] |
Definition at line 189 of file Type.h.
References Const.
Referenced by BuildFieldReferenceExpr(), clang::Sema::CheckMain(), and TypeInfoIsInStandardLibrary().
| void clang::Qualifiers::removeCVRQualifiers | ( | unsigned | mask | ) | [inline] |
Definition at line 212 of file Type.h.
References CVRMask.
Referenced by DeduceTemplateArgumentsByTypeMatch(), haveSimilarTypes(), and TryConstCast().
| void clang::Qualifiers::removeCVRQualifiers | ( | ) | [inline] |
| void clang::Qualifiers::removeFastQualifiers | ( | unsigned | mask | ) | [inline] |
| void clang::Qualifiers::removeFastQualifiers | ( | ) | [inline] |
| void clang::Qualifiers::removeObjCGCAttr | ( | ) | [inline] |
Definition at line 229 of file Type.h.
References GCNone, and setObjCGCAttr().
Referenced by clang::Sema::BuildCallToMemberFunction(), BuildFieldReferenceExpr(), DeduceTemplateArgumentsByTypeMatch(), clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), clang::Sema::IsQualificationConversion(), clang::TryReferenceInit(), TryStaticCast(), and withoutObjCGCAttr().
| void clang::Qualifiers::removeObjCLifetime | ( | ) | [inline] |
Definition at line 252 of file Type.h.
References OCL_None, and setObjCLifetime().
Referenced by clang::BuildSimilarlyQualifiedPointerType(), checkPointerTypesForAssignment(), clang::Sema::CompareReferenceRelationship(), DeduceTemplateArgumentsByTypeMatch(), handleObjCOwnershipTypeAttr(), clang::Sema::IsQualificationConversion(), clang::TryReferenceInit(), TryStaticCast(), and withoutObjCLifetime().
| void clang::Qualifiers::removeRestrict | ( | ) | [inline] |
Definition at line 203 of file Type.h.
References Restrict.
Referenced by clang::Sema::BuildQualifiedType().
| void clang::Qualifiers::removeVolatile | ( | ) | [inline] |
| void clang::Qualifiers::setAddressSpace | ( | unsigned | space | ) | [inline] |
Definition at line 273 of file Type.h.
References MaxAddressSpace.
Referenced by addAddressSpace(), and removeAddressSpace().
| void clang::Qualifiers::setConst | ( | bool | flag | ) | [inline] |
| void clang::Qualifiers::setCVRQualifiers | ( | unsigned | mask | ) | [inline] |
Definition at line 208 of file Type.h.
References CVRMask.
Referenced by CastsAwayConstness(), and DeduceTemplateArgumentsByTypeMatch().
| void clang::Qualifiers::setFastQualifiers | ( | unsigned | mask | ) | [inline] |
| void clang::Qualifiers::setObjCGCAttr | ( | GC | type | ) | [inline] |
Definition at line 226 of file Type.h.
Referenced by addObjCGCAttr(), clang::CodeGen::LValue::MakeAddr(), and removeObjCGCAttr().
| void clang::Qualifiers::setObjCLifetime | ( | ObjCLifetime | type | ) | [inline] |
Definition at line 249 of file Type.h.
Referenced by clang::Sema::CheckTemplateTypeArgument(), clang::ObjCMethodDecl::createImplicitParams(), DeduceTemplateArgumentsByTypeMatch(), clang::Sema::isObjCWritebackConversion(), and removeObjCLifetime().
| void clang::Qualifiers::setRestrict | ( | bool | flag | ) | [inline] |
| void clang::Qualifiers::setVolatile | ( | bool | flag | ) | [inline] |
| Qualifiers clang::Qualifiers::withoutObjCGCAttr | ( | ) | const [inline] |
Definition at line 234 of file Type.h.
References removeObjCGCAttr().
Referenced by checkPointerTypesForAssignment().
| Qualifiers clang::Qualifiers::withoutObjCLifetime | ( | ) | const [inline] |
Definition at line 239 of file Type.h.
References removeObjCLifetime().
Referenced by checkPointerTypesForAssignment(), and clang::Sema::isObjCWritebackConversion().
| Qualifiers operator+ | ( | Qualifiers | L, |
| Qualifiers | R | ||
| ) | [friend] |
| Qualifiers operator- | ( | Qualifiers | L, |
| Qualifiers | R | ||
| ) | [friend] |