|
clang 24.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... | |
Public Member Functions | |
| ObjCDeclSpec () | |
| ObjCDeclQualifier | getObjCDeclQualifier () const |
| void | setObjCDeclQualifier (ObjCDeclQualifier DQVal) |
| void | clearObjCDeclQualifier (ObjCDeclQualifier DQVal) |
| ObjCPropertyAttribute::Kind | getPropertyAttributes () const |
| void | setPropertyAttributes (ObjCPropertyAttribute::Kind 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 960 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 968 of file DeclSpec.h.
|
inline |
Definition at line 979 of file DeclSpec.h.
References DQ_None, and clang::nullptr.
|
inline |
Definition at line 990 of file DeclSpec.h.
|
inline |
Definition at line 1028 of file DeclSpec.h.
|
inline |
Definition at line 1027 of file DeclSpec.h.
|
inline |
Definition at line 1029 of file DeclSpec.h.
Referenced by clang::SemaObjC::ActOnProperty().
|
inline |
Definition at line 1002 of file DeclSpec.h.
References DQ_CSNullability, getObjCDeclQualifier(), getPropertyAttributes(), and clang::ObjCPropertyAttribute::kind_nullability.
Referenced by diagnoseRedundantPropertyNullability().
|
inline |
Definition at line 1010 of file DeclSpec.h.
References DQ_CSNullability, getObjCDeclQualifier(), getPropertyAttributes(), and clang::ObjCPropertyAttribute::kind_nullability.
Referenced by diagnoseRedundantPropertyNullability().
|
inline |
Definition at line 984 of file DeclSpec.h.
Referenced by clang::SemaObjC::ActOnMethodDeclaration(), clang::SemaObjC::ActOnMethodParmDeclaration(), clang::SemaCodeCompletion::CodeCompleteObjCPassingType(), getNullability(), getNullabilityLoc(), and setNullability().
|
inline |
Definition at line 994 of file DeclSpec.h.
Referenced by clang::SemaObjC::ActOnProperty(), clang::SemaCodeCompletion::CodeCompleteObjCPropertyFlags(), getNullability(), getNullabilityLoc(), and setNullability().
|
inline |
Definition at line 1036 of file DeclSpec.h.
|
inline |
Definition at line 1035 of file DeclSpec.h.
|
inline |
Definition at line 1037 of file DeclSpec.h.
Referenced by clang::SemaObjC::ActOnProperty().
|
inline |
Definition at line 1030 of file DeclSpec.h.
|
inline |
Definition at line 1018 of file DeclSpec.h.
References DQ_CSNullability, getObjCDeclQualifier(), getPropertyAttributes(), kind, and clang::ObjCPropertyAttribute::kind_nullability.
|
inline |
Definition at line 987 of file DeclSpec.h.
|
inline |
Definition at line 997 of file DeclSpec.h.
|
inline |
Definition at line 1038 of file DeclSpec.h.