clang API Documentation
A qualifier set is used to build a set of qualifiers. More...
#include <Type.h>
Public Member Functions | |
QualifierCollector (Qualifiers Qs=Qualifiers()) | |
const Type * | strip (QualType type) |
QualType | apply (const ASTContext &Context, QualType QT) const |
Apply the collected qualifiers to the given type. | |
QualType | apply (const ASTContext &Context, const Type *T) const |
Apply the collected qualifiers to the given type. |
clang::QualifierCollector::QualifierCollector | ( | Qualifiers | Qs = Qualifiers() | ) | [inline] |
QualType QualifierCollector::apply | ( | const ASTContext & | Context, |
QualType | QT | ||
) | const |
Apply the collected qualifiers to the given type.
Definition at line 2058 of file Type.cpp.
References clang::Qualifiers::getFastQualifiers(), clang::ASTContext::getQualifiedType(), clang::Qualifiers::hasNonFastQualifiers(), and clang::QualType::withFastQualifiers().
Referenced by Desugar(), DiagnoseBadDeduction(), and TryToFixInvalidVariablyModifiedType().
QualType QualifierCollector::apply | ( | const ASTContext & | Context, |
const Type * | T | ||
) | const |
Apply the collected qualifiers to the given type.
Definition at line 2066 of file Type.cpp.
References clang::Qualifiers::getFastQualifiers(), clang::ASTContext::getQualifiedType(), and clang::Qualifiers::hasNonFastQualifiers().
const Type* clang::QualifierCollector::strip | ( | QualType | type | ) | [inline] |
Collect any qualifiers on the given type and return an unqualified type. The qualifiers are assumed to be consistent with those already in the type.
Definition at line 4652 of file Type.h.
References clang::ExtQuals::getBaseType(), clang::QualType::getLocalFastQualifiers(), clang::ExtQuals::getQualifiers(), and clang::QualType::hasLocalNonFastQualifiers().
Referenced by clang::Sema::CheckMain(), Desugar(), DiagnoseBadDeduction(), clang::ASTContext::getAddrSpaceQualType(), clang::ASTContext::getObjCGCQualType(), clang::ASTContext::getQualifiedType(), and TryToFixInvalidVariablyModifiedType().