clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::ObjCPropertyImplDecl Class Reference

#include <DeclObjC.h>

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

List of all members.

Public Types

enum  Kind { Synthesize, Dynamic }
 Lists the kind of concrete classes of Decl. More...

Public Member Functions

SourceRange getSourceRange () const override LLVM_READONLY
 Source range that this declaration covers.
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.
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 2367 of file DeclObjC.h.


Member Enumeration Documentation

Lists the kind of concrete classes of Decl.

Enumerator:
Synthesize 
Dynamic 

Reimplemented from clang::Decl.

Definition at line 2369 of file DeclObjC.h.


Member Function Documentation

static bool clang::ObjCPropertyImplDecl::classof ( const Decl D) [inline, static]

Definition at line 2469 of file DeclObjC.h.

References classofKind(), and clang::Decl::getKind().

Reimplemented from clang::Decl.

Definition at line 2470 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]

Definition at line 1889 of file DeclObjC.cpp.

References AttributeLangSupport::C, and Dynamic.

Definition at line 2429 of file DeclObjC.h.

References Dynamic, and Synthesize.

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

SourceRange ObjCPropertyImplDecl::getSourceRange ( ) const [override, virtual]

Source range that this declaration covers.

Reimplemented from clang::Decl.

Definition at line 1896 of file DeclObjC.cpp.

References clang::Decl::getLocation(), and clang::SourceLocation::isValid().

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

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

Definition at line 2451 of file DeclObjC.h.

References clang::Decl::getLocation(), and clang::SourceLocation::isValid().

Definition at line 2422 of file DeclObjC.h.

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

void clang::ObjCPropertyImplDecl::setGetterCXXConstructor ( Expr getterCXXConstructor) [inline]

Definition at line 2427 of file DeclObjC.h.

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

Definition at line 2438 of file DeclObjC.h.

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

Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::Decl.

Definition at line 2472 of file DeclObjC.h.


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