parent
906716c40f
commit
9a15a9477b
|
@ -49,6 +49,7 @@ namespace clang {
|
||||||
class RecordType;
|
class RecordType;
|
||||||
class ComplexType;
|
class ComplexType;
|
||||||
class TagType;
|
class TagType;
|
||||||
|
class TypedefType;
|
||||||
class FunctionType;
|
class FunctionType;
|
||||||
class ExtVectorType;
|
class ExtVectorType;
|
||||||
class BuiltinType;
|
class BuiltinType;
|
||||||
|
@ -339,6 +340,7 @@ public:
|
||||||
const IncompleteArrayType *getAsIncompleteArrayType() const;
|
const IncompleteArrayType *getAsIncompleteArrayType() const;
|
||||||
const RecordType *getAsRecordType() const;
|
const RecordType *getAsRecordType() const;
|
||||||
const RecordType *getAsStructureType() const;
|
const RecordType *getAsStructureType() const;
|
||||||
|
const TypedefType *getAsTypedefType() const;
|
||||||
const RecordType *getAsUnionType() const;
|
const RecordType *getAsUnionType() const;
|
||||||
const VectorType *getAsVectorType() const; // GCC vector type.
|
const VectorType *getAsVectorType() const; // GCC vector type.
|
||||||
const ComplexType *getAsComplexType() const;
|
const ComplexType *getAsComplexType() const;
|
||||||
|
@ -350,7 +352,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
/// getDesugaredType - Return the specified type with any "sugar" removed from
|
/// getDesugaredType - Return the specified type with any "sugar" removed from
|
||||||
/// type type. This takes off typedefs, typeof's etc. If the outer level of
|
/// the type. This takes off typedefs, typeof's etc. If the outer level of
|
||||||
/// the type is already concrete, it returns it unmodified. This is similar
|
/// the type is already concrete, it returns it unmodified. This is similar
|
||||||
/// to getting the canonical type, but it doesn't remove *all* typedefs. For
|
/// to getting the canonical type, but it doesn't remove *all* typedefs. For
|
||||||
/// example, it returns "T*" as "T*", (not as "int*"), because the pointer is
|
/// example, it returns "T*" as "T*", (not as "int*"), because the pointer is
|
||||||
|
@ -1215,6 +1217,10 @@ inline unsigned QualType::getAddressSpace() const {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline const TypedefType* Type::getAsTypedefType() const {
|
||||||
|
return dyn_cast<TypedefType>(this);
|
||||||
|
}
|
||||||
|
|
||||||
inline bool Type::isFunctionType() const {
|
inline bool Type::isFunctionType() const {
|
||||||
return isa<FunctionType>(CanonicalType.getUnqualifiedType());
|
return isa<FunctionType>(CanonicalType.getUnqualifiedType());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue