clang
10.0.0git
|
Captures information about "declaration specifiers" specific to Objective-C. More...
#include "clang/Sema/DeclSpec.h"
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, DQ_CSNullability = 0x40 } |
ObjCDeclQualifier - Qualifier used on types in method declarations. More... | |
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, DQ_PR_nullability = 0x1000, DQ_PR_null_resettable = 0x2000, DQ_PR_class = 0x4000, DQ_PR_direct = 0x8000 } |
PropertyAttributeKind - list of property attributes. More... | |
Public Member Functions | |
ObjCDeclSpec () | |
ObjCDeclQualifier | getObjCDeclQualifier () const |
void | setObjCDeclQualifier (ObjCDeclQualifier DQVal) |
void | clearObjCDeclQualifier (ObjCDeclQualifier DQVal) |
ObjCPropertyAttributeKind | getPropertyAttributes () const |
void | setPropertyAttributes (ObjCPropertyAttributeKind PRVal) |
NullabilityKind | getNullability () const |
SourceLocation | getNullabilityLoc () const |
void | setNullability (SourceLocation loc, NullabilityKind kind) |
const IdentifierInfo * | getGetterName () const |
IdentifierInfo * | getGetterName () |
SourceLocation | getGetterNameLoc () const |
void | setGetterName (IdentifierInfo *name, SourceLocation loc) |
const IdentifierInfo * | getSetterName () const |
IdentifierInfo * | getSetterName () |
SourceLocation | getSetterNameLoc () const |
void | setSetterName (IdentifierInfo *name, SourceLocation loc) |
Captures information about "declaration specifiers" specific to Objective-C.
Definition at line 814 of file DeclSpec.h.
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 | |
DQ_CSNullability |
Definition at line 822 of file DeclSpec.h.
PropertyAttributeKind - list of property attributes.
Keep this list in sync with LLVM's Dwarf.h ApplePropertyAttributes.
Definition at line 835 of file DeclSpec.h.
|
inline |
Definition at line 855 of file DeclSpec.h.
|
inline |
Definition at line 865 of file DeclSpec.h.
|
inline |
Definition at line 899 of file DeclSpec.h.
Referenced by addContextSensitiveTypeNullability().
|
inline |
Definition at line 900 of file DeclSpec.h.
|
inline |
Definition at line 901 of file DeclSpec.h.
|
inline |
Definition at line 877 of file DeclSpec.h.
Referenced by addContextSensitiveTypeNullability(), diagnoseRedundantPropertyNullability(), and takeDeclAttributes().
|
inline |
Definition at line 884 of file DeclSpec.h.
Referenced by addContextSensitiveTypeNullability(), diagnoseRedundantPropertyNullability(), and takeDeclAttributes().
|
inline |
Definition at line 859 of file DeclSpec.h.
Referenced by takeDeclAttributes().
|
inline |
Definition at line 869 of file DeclSpec.h.
Referenced by addContextSensitiveTypeNullability(), clang::Sema::CodeCompleteObjCPropertyFlags(), and diagnoseRedundantPropertyNullability().
|
inline |
Definition at line 907 of file DeclSpec.h.
Referenced by addContextSensitiveTypeNullability().
|
inline |
Definition at line 908 of file DeclSpec.h.
|
inline |
Definition at line 909 of file DeclSpec.h.
|
inline |
Definition at line 902 of file DeclSpec.h.
References clang::transformer::name().
Referenced by diagnoseRedundantPropertyNullability().
|
inline |
Definition at line 891 of file DeclSpec.h.
Referenced by diagnoseRedundantPropertyNullability().
|
inline |
Definition at line 862 of file DeclSpec.h.
|
inline |
Definition at line 872 of file DeclSpec.h.
Referenced by diagnoseRedundantPropertyNullability().
|
inline |
Definition at line 910 of file DeclSpec.h.
References clang::transformer::name().
Referenced by diagnoseRedundantPropertyNullability().