clang API Documentation
#include <Type.h>


Public Types | |
| enum | { qual_iterator, qual_begin, qual_end, getNumProtocols, getProtocol } |
Public Member Functions | |
| ObjCInterfaceDecl * | getDecl () const |
| getDecl - Get the declaration of this interface. | |
| bool | isSugared () const |
| QualType | desugar () const |
Static Public Member Functions | |
| static bool | classof (const Type *T) |
Friends | |
| class | ASTContext |
| class | ASTReader |
| class | ObjCInterfaceDecl |
ObjCInterfaceType - Interfaces are the core concept in Objective-C for object oriented design. They basically correspond to C++ classes. There are two kinds of interface types, normal interfaces like "NSString" and qualified interfaces, which are qualified with a protocol list like "NSString<NSCopyable, NSAmazing>".
ObjCInterfaceType guarantees the following properties when considered as a subtype of its superclass, ObjCObjectType:
| anonymous enum |
| static bool clang::ObjCInterfaceType::classof | ( | const Type * | T | ) | [inline, static] |
Reimplemented from clang::ObjCObjectType.
Definition at line 4458 of file Type.h.
References clang::Type::getTypeClass().
| QualType clang::ObjCInterfaceType::desugar | ( | ) | const [inline] |
Reimplemented from clang::ObjCObjectType.
| ObjCInterfaceDecl* clang::ObjCInterfaceType::getDecl | ( | ) | const [inline] |
getDecl - Get the declaration of this interface.
Definition at line 4453 of file Type.h.
Referenced by clang::ASTContext::canAssignObjCInterfacesInBlockPointer(), clang::Sema::HandleExprPropertyRefExpr(), IsStructurallyEquivalent(), and clang::ASTNodeImporter::VisitObjCInterfaceType().
| bool clang::ObjCInterfaceType::isSugared | ( | ) | const [inline] |
Reimplemented from clang::ObjCObjectType.
friend class ASTContext [friend] |
Reimplemented from clang::Type.
friend class ASTReader [friend] |
Reimplemented from clang::Type.
friend class ObjCInterfaceDecl [friend] |