clang  3.9.0
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::ObjCPropertyImplDecl Class Reference

ObjCPropertyImplDecl - Represents implementation declaration of a property in a class or category implementation block. More...

#include <DeclObjC.h>

Inheritance diagram for clang::ObjCPropertyImplDecl:
[legend]
Collaboration diagram for clang::ObjCPropertyImplDecl:
[legend]

Public Types

enum  Kind { Synthesize, Dynamic }
 

Public Member Functions

SourceRange getSourceRange () const override LLVM_READONLY
 
SourceLocation getLocStart () const LLVM_READONLY
 
void setAtLoc (SourceLocation Loc)
 
ObjCPropertyDeclgetPropertyDecl () const
 
void setPropertyDecl (ObjCPropertyDecl *Prop)
 
Kind getPropertyImplementation () const
 
ObjCIvarDeclgetPropertyIvarDecl () const
 
SourceLocation getPropertyIvarDeclLoc () const
 
void setPropertyIvarDecl (ObjCIvarDecl *Ivar, SourceLocation IvarLoc)
 
bool isIvarNameSpecified () const
 For @synthesize, returns true if an ivar name was explicitly specified. More...
 
ExprgetGetterCXXConstructor () const
 
void setGetterCXXConstructor (Expr *getterCXXConstructor)
 
ExprgetSetterCXXAssignment () const
 
void setSetterCXXAssignment (Expr *setterCXXAssignment)
 

Static Public Member Functions

static ObjCPropertyImplDeclCreate (ASTContext &C, DeclContext *DC, SourceLocation atLoc, SourceLocation L, ObjCPropertyDecl *property, Kind PK, ObjCIvarDecl *ivarDecl, SourceLocation ivarLoc)
 
static ObjCPropertyImplDeclCreateDeserialized (ASTContext &C, unsigned ID)
 
static bool classof (const Decl *D)
 
static bool classofKind (Decl::Kind K)
 

Friends

class ASTDeclReader
 

Detailed Description

ObjCPropertyImplDecl - Represents implementation declaration of a property in a class or category implementation block.

For example: @synthesize prop1 = ivar1;

Definition at line 2655 of file DeclObjC.h.

Member Enumeration Documentation

Enumerator
Synthesize 
Dynamic 

Definition at line 2657 of file DeclObjC.h.

Member Function Documentation

static bool clang::ObjCPropertyImplDecl::classof ( const Decl D)
inlinestatic

Definition at line 2757 of file DeclObjC.h.

References classofKind().

static bool clang::ObjCPropertyImplDecl::classofKind ( Decl::Kind  K)
inlinestatic

Definition at line 2758 of file DeclObjC.h.

Referenced by classof().

ObjCPropertyImplDecl * ObjCPropertyImplDecl::Create ( ASTContext C,
DeclContext DC,
SourceLocation  atLoc,
SourceLocation  L,
ObjCPropertyDecl property,
Kind  PK,
ObjCIvarDecl ivarDecl,
SourceLocation  ivarLoc 
)
static
ObjCPropertyImplDecl * ObjCPropertyImplDecl::CreateDeserialized ( ASTContext C,
unsigned  ID 
)
static

Definition at line 2200 of file DeclObjC.cpp.

References Dynamic, and ID.

Expr* clang::ObjCPropertyImplDecl::getGetterCXXConstructor ( ) const
inline
SourceLocation clang::ObjCPropertyImplDecl::getLocStart ( ) const
inline
ObjCPropertyDecl* clang::ObjCPropertyImplDecl::getPropertyDecl ( ) const
inline
Kind clang::ObjCPropertyImplDecl::getPropertyImplementation ( ) const
inline
ObjCIvarDecl* clang::ObjCPropertyImplDecl::getPropertyIvarDecl ( ) const
inline
SourceLocation clang::ObjCPropertyImplDecl::getPropertyIvarDeclLoc ( ) const
inline
Expr* clang::ObjCPropertyImplDecl::getSetterCXXAssignment ( ) const
inline
SourceRange ObjCPropertyImplDecl::getSourceRange ( ) const
override

Definition at line 2207 of file DeclObjC.cpp.

References clang::SourceLocation::isValid().

bool clang::ObjCPropertyImplDecl::isIvarNameSpecified ( ) const
inline

For @synthesize, returns true if an ivar name was explicitly specified.

\@synthesize int a = b; // true
\@synthesize int a; // false

Definition at line 2739 of file DeclObjC.h.

References clang::SourceLocation::isValid().

void clang::ObjCPropertyImplDecl::setAtLoc ( SourceLocation  Loc)
inline

Definition at line 2710 of file DeclObjC.h.

Referenced by clang::ASTDeclReader::VisitObjCPropertyImplDecl().

void clang::ObjCPropertyImplDecl::setGetterCXXConstructor ( Expr getterCXXConstructor)
inline
void clang::ObjCPropertyImplDecl::setPropertyDecl ( ObjCPropertyDecl Prop)
inline

Definition at line 2715 of file DeclObjC.h.

Referenced by clang::ASTDeclReader::VisitObjCPropertyImplDecl().

void clang::ObjCPropertyImplDecl::setPropertyIvarDecl ( ObjCIvarDecl Ivar,
SourceLocation  IvarLoc 
)
inline

Definition at line 2726 of file DeclObjC.h.

void clang::ObjCPropertyImplDecl::setSetterCXXAssignment ( Expr setterCXXAssignment)
inline

Friends And Related Function Documentation

friend class ASTDeclReader
friend

Definition at line 2760 of file DeclObjC.h.


The documentation for this class was generated from the following files: