clang API Documentation

Public Types | Public Member Functions
clang::ObjCDeclSpec Class Reference

#include <DeclSpec.h>

List of all members.

Public Types

enum  ObjCDeclQualifier {
  DQ_None = 0x0, DQ_In = 0x1, DQ_Inout = 0x2, DQ_Out = 0x4,
  DQ_Bycopy = 0x8, DQ_Byref = 0x10, DQ_Oneway = 0x20
}
enum  ObjCPropertyAttributeKind {
  DQ_PR_noattr = 0x0, DQ_PR_readonly = 0x01, DQ_PR_getter = 0x02, DQ_PR_assign = 0x04,
  DQ_PR_readwrite = 0x08, DQ_PR_retain = 0x10, DQ_PR_copy = 0x20, DQ_PR_nonatomic = 0x40,
  DQ_PR_setter = 0x80, DQ_PR_atomic = 0x100, DQ_PR_weak = 0x200, DQ_PR_strong = 0x400,
  DQ_PR_unsafe_unretained = 0x800
}
 PropertyAttributeKind - list of property attributes. More...

Public Member Functions

 ObjCDeclSpec ()
ObjCDeclQualifier getObjCDeclQualifier () const
void setObjCDeclQualifier (ObjCDeclQualifier DQVal)
ObjCPropertyAttributeKind getPropertyAttributes () const
void setPropertyAttributes (ObjCPropertyAttributeKind PRVal)
const IdentifierInfogetGetterName () const
IdentifierInfogetGetterName ()
void setGetterName (IdentifierInfo *name)
const IdentifierInfogetSetterName () const
IdentifierInfogetSetterName ()
void setSetterName (IdentifierInfo *name)

Detailed Description

ObjCDeclSpec - This class captures information about "declaration specifiers" specific to objective-c

Definition at line 694 of file DeclSpec.h.


Member Enumeration Documentation

ObjCDeclQualifier - Qualifier used on types in method declarations. Not all combinations are sensible. Parameters can be one of { in, out, inout } with one of { bycopy, byref }. Returns can either be { oneway } or not.

This should be kept in sync with Decl::ObjCDeclQualifier.

Enumerator:
DQ_None 
DQ_In 
DQ_Inout 
DQ_Out 
DQ_Bycopy 
DQ_Byref 
DQ_Oneway 

Definition at line 702 of file DeclSpec.h.

PropertyAttributeKind - list of property attributes.

Enumerator:
DQ_PR_noattr 
DQ_PR_readonly 
DQ_PR_getter 
DQ_PR_assign 
DQ_PR_readwrite 
DQ_PR_retain 
DQ_PR_copy 
DQ_PR_nonatomic 
DQ_PR_setter 
DQ_PR_atomic 
DQ_PR_weak 
DQ_PR_strong 
DQ_PR_unsafe_unretained 

Definition at line 713 of file DeclSpec.h.


Constructor & Destructor Documentation

clang::ObjCDeclSpec::ObjCDeclSpec ( ) [inline]

Definition at line 730 of file DeclSpec.h.


Member Function Documentation

const IdentifierInfo* clang::ObjCDeclSpec::getGetterName ( ) const [inline]

Definition at line 746 of file DeclSpec.h.

IdentifierInfo* clang::ObjCDeclSpec::getGetterName ( ) [inline]

Definition at line 747 of file DeclSpec.h.

ObjCDeclQualifier clang::ObjCDeclSpec::getObjCDeclQualifier ( ) const [inline]

Definition at line 733 of file DeclSpec.h.

Referenced by clang::Sema::ActOnMethodDeclaration(), and AddObjCExpressionResults().

ObjCPropertyAttributeKind clang::ObjCDeclSpec::getPropertyAttributes ( ) const [inline]

Definition at line 738 of file DeclSpec.h.

Referenced by clang::Sema::ActOnProperty(), and AddObjCExpressionResults().

const IdentifierInfo* clang::ObjCDeclSpec::getSetterName ( ) const [inline]

Definition at line 750 of file DeclSpec.h.

IdentifierInfo* clang::ObjCDeclSpec::getSetterName ( ) [inline]

Definition at line 751 of file DeclSpec.h.

void clang::ObjCDeclSpec::setGetterName ( IdentifierInfo name) [inline]

Definition at line 748 of file DeclSpec.h.

void clang::ObjCDeclSpec::setObjCDeclQualifier ( ObjCDeclQualifier  DQVal) [inline]

Definition at line 734 of file DeclSpec.h.

void clang::ObjCDeclSpec::setPropertyAttributes ( ObjCPropertyAttributeKind  PRVal) [inline]

Definition at line 741 of file DeclSpec.h.

void clang::ObjCDeclSpec::setSetterName ( IdentifierInfo name) [inline]

Definition at line 752 of file DeclSpec.h.


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