clang
15.0.0git
|
The collection of all-type qualifiers we support. More...
#include "clang/AST/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 = 0x7fffffu, FastWidth = 3, FastMask = (1 << FastWidth) - 1 } |
Public Member Functions | |
unsigned | getAsOpaqueValue () const |
bool | hasConst () const |
bool | hasOnlyConst () const |
void | removeConst () |
void | addConst () |
bool | hasVolatile () const |
bool | hasOnlyVolatile () const |
void | removeVolatile () |
void | addVolatile () |
bool | hasRestrict () const |
bool | hasOnlyRestrict () const |
void | removeRestrict () |
void | addRestrict () |
bool | hasCVRQualifiers () const |
unsigned | getCVRQualifiers () const |
unsigned | getCVRUQualifiers () const |
void | setCVRQualifiers (unsigned mask) |
void | removeCVRQualifiers (unsigned mask) |
void | removeCVRQualifiers () |
void | addCVRQualifiers (unsigned mask) |
void | addCVRUQualifiers (unsigned mask) |
bool | hasUnaligned () const |
void | setUnaligned (bool flag) |
void | removeUnaligned () |
void | addUnaligned () |
bool | hasObjCGCAttr () const |
GC | getObjCGCAttr () const |
void | setObjCGCAttr (GC type) |
void | removeObjCGCAttr () |
void | addObjCGCAttr (GC type) |
Qualifiers | withoutObjCGCAttr () const |
Qualifiers | withoutObjCLifetime () const |
Qualifiers | withoutAddressSpace () 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. More... | |
bool | hasStrongOrWeakObjCLifetime () const |
True if the lifetime is either strong or weak. More... | |
bool | hasAddressSpace () const |
LangAS | getAddressSpace () const |
bool | hasTargetSpecificAddressSpace () const |
unsigned | getAddressSpaceAttributePrintValue () const |
Get the address space attribute value to be printed by diagnostics. More... | |
void | setAddressSpace (LangAS space) |
void | removeAddressSpace () |
void | addAddressSpace (LangAS space) |
bool | hasFastQualifiers () const |
unsigned | getFastQualifiers () const |
void | setFastQualifiers (unsigned mask) |
void | removeFastQualifiers (unsigned mask) |
void | removeFastQualifiers () |
void | addFastQualifiers (unsigned mask) |
bool | hasNonFastQualifiers () const |
Return true if the set contains any qualifiers which require an ExtQuals node to be allocated. More... | |
Qualifiers | getNonFastQualifiers () const |
bool | hasQualifiers () const |
Return true if the set contains any qualifiers. More... | |
bool | empty () const |
void | addQualifiers (Qualifiers Q) |
Add the qualifiers from the given set to this set. More... | |
void | removeQualifiers (Qualifiers Q) |
Remove the qualifiers from the given set from this set. More... | |
void | addConsistentQualifiers (Qualifiers qs) |
Add the qualifiers from the given set to this set, given that they don't conflict. More... | |
bool | isAddressSpaceSupersetOf (Qualifiers other) const |
Returns true if the address space in these qualifiers is equal to or a superset of the address space in the argument qualifiers. More... | |
bool | compatiblyIncludes (Qualifiers other) const |
Determines if these qualifiers compatibly include another set. More... | |
bool | compatiblyIncludesObjCLifetime (Qualifiers other) const |
Determines if these qualifiers compatibly include another set of qualifiers from the narrow perspective of Objective-C ARC lifetime. More... | |
bool | isStrictSupersetOf (Qualifiers Other) const |
Determine whether this set of qualifiers is a strict superset of another set of qualifiers, not considering qualifier compatibility. More... | |
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 |
bool | isEmptyWhenPrinted (const PrintingPolicy &Policy) const |
void | print (raw_ostream &OS, const PrintingPolicy &Policy, bool appendSpaceIfNonEmpty=false) const |
void | Profile (llvm::FoldingSetNodeID &ID) const |
Static Public Member Functions | |
static Qualifiers | removeCommonQualifiers (Qualifiers &L, Qualifiers &R) |
Returns the common set of qualifiers while removing them from the given sets. More... | |
static Qualifiers | fromFastMask (unsigned Mask) |
static Qualifiers | fromCVRMask (unsigned CVR) |
static Qualifiers | fromCVRUMask (unsigned CVRU) |
static Qualifiers | fromOpaqueValue (unsigned opaque) |
static bool | isAddressSpaceSupersetOf (LangAS A, LangAS B) |
Returns true if address space A is equal to or a superset of B. More... | |
static std::string | getAddrSpaceAsString (LangAS AS) |
Friends | |
Qualifiers | operator+ (Qualifiers L, Qualifiers R) |
Qualifiers | operator- (Qualifiers L, Qualifiers R) |
Compute the difference between two qualifier sets. More... | |
The collection of all-type qualifiers we support.
Clang supports five independent qualifiers:
anonymous enum |
|
inline |
Definition at line 389 of file Type.h.
References clang::Default, and setAddressSpace().
Referenced by clang::Sema::ActOnStartOfLambdaDefinition(), addQualifiers(), clang::ASTContext::getAddrSpaceQualType(), and clang::CodeGen::CGOpenMPRuntimeGPU::translateParameter().
|
inline |
Add the qualifiers from the given set to this set, given that they don't conflict.
Definition at line 463 of file Type.h.
References getAddressSpace(), getObjCGCAttr(), getObjCLifetime(), hasAddressSpace(), hasObjCGCAttr(), and hasObjCLifetime().
Referenced by clang::ASTContext::getBaseElementType(), clang::SplitQualType::getSingleStepDesugaredType(), clang::ASTContext::getUnqualifiedArrayType(), and clang::QualifierCollector::strip().
|
inline |
Definition at line 267 of file Type.h.
References Const.
Referenced by clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnStartOfLambdaDefinition(), clang::Sema::AddBuiltinOperatorCandidates(), clang::Sema::CheckFunctionTemplateSpecialization(), and clang::Sema::IsOverload().
|
inline |
Definition at line 294 of file Type.h.
References CVRMask.
Referenced by clang::CodeGen::CodeGenFunction::EmitLValueForField(), fromCVRMask(), and removeCommonQualifiers().
|
inline |
|
inline |
Definition at line 409 of file Type.h.
References FastMask.
Referenced by fromFastMask(), clang::QualType::getLocalQualifiers(), clang::QualType::getQualifiers(), clang::QualType::split(), and clang::QualifierCollector::strip().
|
inline |
Definition at line 316 of file Type.h.
References setObjCGCAttr().
Referenced by addQualifiers(), and clang::ASTContext::getObjCGCQualType().
|
inline |
Definition at line 344 of file Type.h.
References hasObjCLifetime().
Referenced by addQualifiers(), and clang::ASTContext::getLifetimeQualifiedType().
|
inline |
Add the qualifiers from the given set to this set.
Definition at line 428 of file Type.h.
References addAddressSpace(), addObjCGCAttr(), addObjCLifetime(), CVRMask, getAddressSpace(), getObjCGCAttr(), getObjCLifetime(), hasAddressSpace(), hasObjCGCAttr(), and hasObjCLifetime().
Referenced by clang::CodeGen::CodeGenFunction::EmitUnaryOpLValue(), and operator+=().
|
inline |
Definition at line 277 of file Type.h.
References Restrict.
Referenced by CollectVRQualifiers(), and clang::CodeGen::CGOpenMPRuntimeGPU::translateParameter().
|
inline |
Definition at line 272 of file Type.h.
References Volatile.
Referenced by CollectVRQualifiers(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), and clang::CodeGen::AggValueSlot::setVolatile().
|
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 517 of file Type.h.
References CVRMask, getObjCGCAttr(), getObjCLifetime(), hasObjCGCAttr(), hasUnaligned(), and isAddressSpaceSupersetOf().
Referenced by AdoptQualifiers(), compareOverloads(), clang::Sema::handlerCanCatch(), clang::QualType::isAtLeastAsQualifiedAs(), clang::QualType::isMoreQualifiedThan(), clang::Sema::isObjCWritebackConversion(), isQualificationConversionStep(), and TryStaticCast().
|
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, or both are non-__weak and one is None (which can only happen in non-ARC modes).
Definition at line 538 of file Type.h.
References getObjCLifetime(), hasConst(), OCL_None, and OCL_Weak.
Referenced by CastsAwayConstness(), and isQualificationConversionStep().
|
inline |
Definition at line 425 of file Type.h.
Referenced by clang::Sema::CheckQualifiedFunctionForTypeId(), clang::ASTContext::getAsArrayType(), clang::ASTContext::getUnqualifiedArrayType(), clang::Expr::isNullPointerConstant(), clang::Sema::isObjCWritebackConversion(), isValidSwiftErrorResultType(), clang::TreeTransform< Derived >::TransformNestedNameSpecifierLoc(), and TypeInfoIsInStandardLibrary().
|
inlinestatic |
Definition at line 240 of file Type.h.
References addCVRQualifiers().
Referenced by clang::Sema::BuildQualifiedType(), CastsAwayConstness(), clang::ASTContext::getCVRQualifiedType(), and clang::ArrayType::getIndexTypeQualifiers().
|
inlinestatic |
Definition at line 246 of file Type.h.
References addCVRUQualifiers().
Referenced by clang::Sema::FindCompositePointerType().
|
inlinestatic |
Definition at line 234 of file Type.h.
References addFastQualifiers().
Referenced by clang::FunctionType::getFastTypeQuals(), and clang::QualType::split().
|
inlinestatic |
Definition at line 253 of file Type.h.
Referenced by clang::ASTRecordReader::readQualifiers(), and clang::serialization::DataStreamBasicReader< ASTRecordReader >::readQualifiers().
|
inline |
Definition at line 363 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), clang::Sema::CheckExplicitlyDefaultedSpecialMember(), clang::CodeGen::CodeGenTypes::DeriveThisType(), clang::Sema::DiagnoseAssignmentResult(), clang::CodeGen::CodeGenFunction::EmitCXXConstructorCall(), clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall(), EmitDeclDestroy(), clang::Sema::FindCompositePointerType(), clang::CodeGen::LValue::getAddressSpace(), clang::QualType::getAddressSpace(), clang::ExtQuals::getAddressSpace(), getAddressSpaceAttributePrintValue(), clang::ASTContext::getTargetAddressSpace(), hasInconsistentOrSupersetQualifiersOf(), hasTargetSpecificAddressSpace(), isAddressSpaceSupersetOf(), IsModifiable(), isQualificationConversionStep(), isStrictSupersetOf(), clang::ASTContext::mergeObjCGCQualifiers(), clang::ASTContext::mergeTypes(), clang::TreeTransform< Derived >::RebuildQualifiedType(), removeCommonQualifiers(), and removeQualifiers().
|
inline |
Get the address space attribute value to be printed by diagnostics.
Definition at line 370 of file Type.h.
References clang::Default, getAddressSpace(), hasTargetSpecificAddressSpace(), and clang::toTargetAddressSpace().
Referenced by clang::Sema::CheckAllocatedType().
|
static |
Definition at line 2168 of file TypePrinter.cpp.
|
inline |
Definition at line 260 of file Type.h.
Referenced by clang::ODRHash::AddQualType(), clang::ASTContext::mergeTypes(), clang::operator<<(), and clang::serialization::DataStreamBasicWriter< ASTRecordWriter >::writeQualifiers().
std::string Qualifiers::getAsString | ( | ) | const |
Definition at line 2136 of file TypePrinter.cpp.
Referenced by getFunctionQualifiersAsString(), clang::TextNodeDumper::Visit(), clang::JSONNodeDumper::Visit(), clang::JSONNodeDumper::VisitArrayType(), and clang::TextNodeDumper::VisitArrayType().
std::string Qualifiers::getAsString | ( | const PrintingPolicy & | Policy | ) | const |
Definition at line 2144 of file TypePrinter.cpp.
|
inline |
Definition at line 280 of file Type.h.
References CVRMask.
Referenced by CastsAwayConstness(), clang::CodeGen::CodeGenFunction::EmitObjCIvarRefLValue(), clang::CodeGen::LValue::getVRQualifiers(), hasCVRQualifiers(), hasInconsistentOrSupersetQualifiersOf(), hasMangledSubstitutionQualifiers(), isQualificationConversionStep(), clang::ASTContext::mergeObjCGCQualifiers(), clang::ASTContext::mergeTypes(), and removeCommonQualifiers().
|
inline |
Definition at line 281 of file Type.h.
References CVRMask.
Referenced by clang::Sema::FindCompositePointerType().
|
inline |
Definition at line 397 of file Type.h.
References FastMask.
Referenced by clang::QualifierCollector::apply(), clang::ASTContext::getQualifiedType(), hasFastQualifiers(), and clang::ASTContext::removeAddrSpaceQualType().
|
inline |
Definition at line 417 of file Type.h.
References setFastQualifiers().
|
inline |
Definition at line 311 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), compatiblyIncludes(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), clang::Sema::FindCompositePointerType(), clang::QualType::getObjCGCAttr(), clang::ExtQuals::getObjCGCAttr(), hasInconsistentOrSupersetQualifiersOf(), clang::CodeGen::LValue::isObjCStrong(), clang::CodeGen::LValue::isObjCWeak(), isQualificationConversionStep(), isStrictSupersetOf(), clang::ASTContext::mergeObjCGCQualifiers(), clang::ASTContext::mergeTypes(), removeCommonQualifiers(), and removeQualifiers().
|
inline |
Definition at line 337 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), clang::ASTContext::BlockRequiresCopying(), compatiblyIncludes(), compatiblyIncludesObjCLifetime(), clang::Sema::DiagnoseAssignmentResult(), clang::CodeGen::CGObjCRuntime::EmitInitOfCatchParam(), clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(), clang::CodeGen::CodeGenFunction::EmitParmDecl(), clang::Sema::FindCompositePointerType(), clang::CodeGen::CodeGenFunction::generateObjCGetterBody(), clang::CodeGen::LValue::getObjCLifetime(), clang::CodeGen::AggValueSlot::getObjCLifetime(), clang::QualType::getObjCLifetime(), clang::ExtQuals::getObjCLifetime(), hasInconsistentOrSupersetQualifiersOf(), hasNonTrivialObjCLifetime(), hasStrongOrWeakObjCLifetime(), InitCatchParam(), isNonTrivialObjCLifetimeConversion(), clang::QualType::isNonTrivialToPrimitiveCopy(), clang::Sema::isObjCWritebackConversion(), isQualificationConversionStep(), isStrictSupersetOf(), clang::ASTContext::mergeTypes(), removeCommonQualifiers(), and removeQualifiers().
|
inline |
Definition at line 362 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), clang::ASTContext::getAddrSpaceQualType(), clang::QualType::hasAddressSpace(), clang::ExtQuals::hasAddressSpace(), hasInconsistentOrSupersetQualifiersOf(), hasMangledSubstitutionQualifiers(), and isStrictSupersetOf().
|
inline |
Definition at line 264 of file Type.h.
References Const.
Referenced by CastsAwayConstness(), compatiblyIncludesObjCLifetime(), DiagnoseCastQual(), clang::CodeGen::CodeGenFunction::EmitParmDecl(), getNextQualifier(), clang::FunctionType::isConst(), isConstantEmittableObjectType(), isNonTrivialObjCLifetimeConversion(), and isQualificationConversionStep().
|
inline |
Definition at line 279 of file Type.h.
References getCVRQualifiers().
|
inline |
Definition at line 396 of file Type.h.
References getFastQualifiers().
Referenced by clang::ExtQuals::ExtQuals(), and clang::ExtQuals::Profile().
|
inline |
Return true if the set contains any qualifiers which require an ExtQuals node to be allocated.
Definition at line 416 of file Type.h.
References FastMask.
Referenced by clang::QualifierCollector::apply(), clang::ExtQuals::ExtQuals(), clang::ASTContext::getQualifiedType(), and clang::ASTContext::removeAddrSpaceQualType().
|
inline |
True if the lifetime is neither None or ExplicitNone.
Definition at line 351 of file Type.h.
References getObjCLifetime(), and OCL_ExplicitNone.
Referenced by clang::QualType::hasNonTrivialObjCLifetime().
|
inline |
Definition at line 310 of file Type.h.
Referenced by addConsistentQualifiers(), addQualifiers(), compatiblyIncludes(), clang::ASTContext::getObjCGCQualType(), hasInconsistentOrSupersetQualifiersOf(), clang::ExtQuals::hasObjCGCAttr(), isQualificationConversionStep(), and isStrictSupersetOf().
|
inline |
Definition at line 336 of file Type.h.
Referenced by addConsistentQualifiers(), addObjCLifetime(), addQualifiers(), clang::ASTContext::getCanonicalFunctionResultType(), hasInconsistentOrSupersetQualifiersOf(), clang::ExtQuals::hasObjCLifetime(), isStrictSupersetOf(), clang::TreeTransform< Derived >::RebuildQualifiedType(), and rewriteToObjCProperty().
|
inline |
|
inline |
|
inline |
|
inline |
Return true if the set contains any qualifiers.
Definition at line 424 of file Type.h.
Referenced by operator bool(), and clang::ASTNodeTraverser< ASTDumper, TextNodeDumper >::Visit().
|
inline |
Definition at line 274 of file Type.h.
References Restrict.
Referenced by clang::Sema::BuildQualifiedType(), CollectVRQualifiers(), getNextQualifier(), clang::FunctionType::isRestrict(), clang::CodeGen::LValue::isRestrictQualified(), and clang::TreeTransform< Derived >::RebuildQualifiedType().
|
inline |
True if the lifetime is either strong or weak.
Definition at line 357 of file Type.h.
References getObjCLifetime(), OCL_Strong, and OCL_Weak.
Referenced by clang::QualType::hasStrongOrWeakObjCLifetime().
|
inline |
Definition at line 366 of file Type.h.
References getAddressSpace(), and clang::isTargetAddressSpace().
Referenced by getAddressSpaceAttributePrintValue().
|
inline |
Definition at line 303 of file Type.h.
Referenced by compatiblyIncludes(), decomposeTypeForEH(), GetAlignOfType(), clang::ASTContext::getDeclAlign(), clang::CodeGen::CodeGenModule::getNaturalTypeAlignment(), hasMangledSubstitutionQualifiers(), clang::ASTContext::mergeTypes(), clang::Sema::PerformImplicitConversion(), clang::Sema::RefersToMemberWithReducedAlignment(), and withoutUnaligned().
|
inline |
Definition at line 269 of file Type.h.
References Volatile.
Referenced by CollectVRQualifiers(), DiagnoseCastQual(), getNextQualifier(), isConstantEmittableObjectType(), clang::QualType::isNonTrivialToPrimitiveCopy(), clang::CodeGen::LValue::isVolatile(), clang::CodeGen::AggValueSlot::isVolatile(), clang::FunctionType::isVolatile(), and clang::CodeGen::LValue::isVolatileQualified().
Returns true if address space A is equal to or a superset of B.
OpenCL v2.0 defines conversion rules (OpenCLC v2.0 s6.5.5) and notion of overlapping address spaces. CL1.1 or CL1.2: every address space is a superset of itself. CL2.0 adds: __generic is a superset of any address space except for __constant.
Definition at line 480 of file Type.h.
References clang::cuda_constant, clang::cuda_device, clang::cuda_shared, clang::Default, clang::isPtrSizeAddressSpace(), clang::opencl_constant, clang::opencl_generic, clang::opencl_global, clang::opencl_global_device, clang::opencl_global_host, clang::sycl_global, clang::sycl_global_device, clang::sycl_global_host, clang::sycl_local, and clang::sycl_private.
Referenced by compatiblyIncludes(), clang::Sema::FindCompositePointerType(), clang::QualType::isAddressSpaceOverlapping(), isAddressSpaceSupersetOf(), isQualificationConversionStep(), clang::ASTContext::mergeTypes(), clang::Sema::PerformImplicitConversion(), and TryReinterpretCast().
|
inline |
Returns true if the address space in these qualifiers is equal to or a superset of the address space in the argument qualifiers.
Definition at line 510 of file Type.h.
References getAddressSpace(), and isAddressSpaceSupersetOf().
bool Qualifiers::isEmptyWhenPrinted | ( | const PrintingPolicy & | Policy | ) | const |
Definition at line 2151 of file TypePrinter.cpp.
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 58 of file Type.cpp.
References CVRMask, getAddressSpace(), getObjCGCAttr(), getObjCLifetime(), hasAddressSpace(), hasObjCGCAttr(), and hasObjCLifetime().
|
inlineexplicit |
Definition at line 558 of file Type.h.
References hasQualifiers().
|
inline |
|
inline |
Definition at line 560 of file Type.h.
References addQualifiers().
|
inline |
Definition at line 572 of file Type.h.
References removeQualifiers().
|
inline |
void Qualifiers::print | ( | raw_ostream & | OS, |
const PrintingPolicy & | Policy, | ||
bool | appendSpaceIfNonEmpty = false |
||
) | const |
Definition at line 2211 of file TypePrinter.cpp.
|
inline |
Definition at line 592 of file Type.h.
Referenced by clang::ExtQuals::Profile().
|
inline |
Definition at line 388 of file Type.h.
References clang::Default, and setAddressSpace().
Referenced by clang::Expr::isNullPointerConstant(), clang::ASTContext::mergeTypes(), RemoveAddressSpaceFromPtr(), clang::ASTContext::removeAddrSpaceQualType(), removeCommonQualifiers(), removeQualifiers(), stripUnusedQualifiers(), and withoutAddressSpace().
|
inlinestatic |
Returns the common set of qualifiers while removing them from the given sets.
Definition at line 198 of file Type.h.
References addCVRQualifiers(), CVRMask, getAddressSpace(), getCVRQualifiers(), getObjCGCAttr(), getObjCLifetime(), removeAddressSpace(), removeCVRQualifiers(), removeObjCGCAttr(), removeObjCLifetime(), setAddressSpace(), setObjCGCAttr(), and setObjCLifetime().
Referenced by UnwrapTypeForDebugInfo().
|
inline |
Definition at line 266 of file Type.h.
References Const.
Referenced by clang::Sema::BuildQualifiedType(), CastsAwayConstness(), getNextQualifier(), and TypeInfoIsInStandardLibrary().
|
inline |
|
inline |
Definition at line 287 of file Type.h.
References CVRMask.
Referenced by clang::ASTContext::hasCvrSimilarType(), removeCommonQualifiers(), and shouldBeModeledWithNoOp().
|
inline |
|
inline |
|
inline |
Definition at line 315 of file Type.h.
References GCNone, and setObjCGCAttr().
Referenced by clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), isQualificationConversionStep(), removeCommonQualifiers(), removeQualifiers(), stripUnusedQualifiers(), TryStaticCast(), and withoutObjCGCAttr().
|
inline |
Definition at line 343 of file Type.h.
References OCL_None, and setObjCLifetime().
Referenced by BuildSimilarlyQualifiedPointerType(), clang::ASTContext::getCanonicalFunctionResultType(), clang::ASTContext::getUnqualifiedObjCPointerType(), isQualificationConversionStep(), clang::TreeTransform< Derived >::RebuildQualifiedType(), removeCommonQualifiers(), removeQualifiers(), rewriteToObjCProperty(), stripUnusedQualifiers(), TryStaticCast(), and withoutObjCLifetime().
|
inline |
Remove the qualifiers from the given set from this set.
Definition at line 445 of file Type.h.
References CVRMask, getAddressSpace(), getObjCGCAttr(), getObjCLifetime(), removeAddressSpace(), removeObjCGCAttr(), and removeObjCLifetime().
Referenced by operator-=().
|
inline |
Definition at line 276 of file Type.h.
References Restrict.
Referenced by clang::Sema::BuildQualifiedType(), and getNextQualifier().
|
inline |
Definition at line 307 of file Type.h.
Referenced by clang::QualType::isAtLeastAsQualifiedAs(), isQualificationConversionStep(), stripUnusedQualifiers(), and withoutUnaligned().
|
inline |
Definition at line 271 of file Type.h.
References Volatile.
Referenced by clang::Sema::BuildQualifiedType(), getNextQualifier(), and clang::CodeGen::AggValueSlot::setVolatile().
|
inline |
Definition at line 383 of file Type.h.
References MaxAddressSpace.
Referenced by addAddressSpace(), clang::Sema::BuildCallExpr(), clang::CodeGen::CodeGenFunction::EmitUnaryOpLValue(), clang::Sema::FindCompositePointerType(), clang::ASTContext::InitBuiltinTypes(), removeAddressSpace(), and removeCommonQualifiers().
|
inline |
|
inline |
|
inline |
Definition at line 312 of file Type.h.
Referenced by addObjCGCAttr(), clang::Sema::FindCompositePointerType(), clang::CodeGen::LValue::MakeAddr(), removeCommonQualifiers(), and removeObjCGCAttr().
|
inline |
Definition at line 340 of file Type.h.
Referenced by clang::Sema::FindCompositePointerType(), clang::Sema::isObjCWritebackConversion(), removeCommonQualifiers(), and removeObjCLifetime().
|
inline |
Definition at line 304 of file Type.h.
Referenced by clang::Sema::BuildQualifiedType().
|
inline |
Definition at line 330 of file Type.h.
References removeAddressSpace().
|
inline |
Definition at line 320 of file Type.h.
References removeObjCGCAttr().
|
inline |
Definition at line 325 of file Type.h.
References removeObjCLifetime().
Referenced by clang::Sema::isObjCWritebackConversion().
|
friend |
|
friend |