clang  14.0.0git
Public Member Functions | Friends | List of all members
clang::api_notes::ObjCContextInfo Class Reference

Describes API notes data for an Objective-C class or protocol. More...

#include "clang/APINotes/Types.h"

Inheritance diagram for clang::api_notes::ObjCContextInfo:
Inheritance graph
[legend]
Collaboration diagram for clang::api_notes::ObjCContextInfo:
Collaboration graph
[legend]

Public Member Functions

 ObjCContextInfo ()
 
llvm::Optional< NullabilityKindgetDefaultNullability () const
 Determine the default nullability for properties and methods of this class. More...
 
void setDefaultNullability (NullabilityKind Kind)
 Set the default nullability for properties and methods of this class. More...
 
bool hasDesignatedInits () const
 
void setHasDesignatedInits (bool Value)
 
llvm::Optional< boolgetSwiftImportAsNonGeneric () const
 
void setSwiftImportAsNonGeneric (llvm::Optional< bool > Value)
 
llvm::Optional< boolgetSwiftObjCMembers () const
 
void setSwiftObjCMembers (llvm::Optional< bool > Value)
 
void stripModuleLocalInfo ()
 Strip off any information within the class information structure that is module-local, such as 'audited' flags. More...
 
ObjCContextInfooperator|= (const ObjCContextInfo &RHS)
 
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS)
 
- Public Member Functions inherited from clang::api_notes::CommonTypeInfo
 CommonTypeInfo ()
 
const llvm::Optional< std::string > & getSwiftBridge () const
 
void setSwiftBridge (const llvm::Optional< std::string > &SwiftType)
 
void setSwiftBridge (const llvm::Optional< llvm::StringRef > &SwiftType)
 
const llvm::Optional< std::string > & getNSErrorDomain () const
 
void setNSErrorDomain (const llvm::Optional< std::string > &Domain)
 
void setNSErrorDomain (const llvm::Optional< llvm::StringRef > &Domain)
 
CommonTypeInfooperator|= (const CommonTypeInfo &RHS)
 
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const
 
- Public Member Functions inherited from clang::api_notes::CommonEntityInfo
 CommonEntityInfo ()
 
llvm::Optional< boolisSwiftPrivate () const
 
void setSwiftPrivate (llvm::Optional< bool > Private)
 
CommonEntityInfooperator|= (const CommonEntityInfo &RHS)
 
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const
 

Friends

bool operator== (const ObjCContextInfo &, const ObjCContextInfo &)
 

Additional Inherited Members

- Public Attributes inherited from clang::api_notes::CommonEntityInfo
std::string UnavailableMsg
 Message to use when this entity is unavailable. More...
 
unsigned Unavailable: 1
 Whether this entity is marked unavailable. More...
 
unsigned UnavailableInSwift: 1
 Whether this entity is marked unavailable in Swift. More...
 
std::string SwiftName
 Swift name of this entity. More...
 

Detailed Description

Describes API notes data for an Objective-C class or protocol.

Definition at line 193 of file Types.h.

Constructor & Destructor Documentation

◆ ObjCContextInfo()

clang::api_notes::ObjCContextInfo::ObjCContextInfo ( )
inline

Definition at line 210 of file Types.h.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void clang::api_notes::ObjCContextInfo::dump ( llvm::raw_ostream &  OS)

Definition at line 35 of file APINotesTypes.cpp.

References clang::api_notes::CommonTypeInfo::dump().

◆ getDefaultNullability()

llvm::Optional<NullabilityKind> clang::api_notes::ObjCContextInfo::getDefaultNullability ( ) const
inline

Determine the default nullability for properties and methods of this class.

eturns the default nullability, if implied, or None if there is no

Definition at line 220 of file Types.h.

Referenced by clang::api_notes::operator==(), operator|=(), clang::api_notes::ObjCPropertyInfo::operator|=(), and clang::api_notes::ObjCMethodInfo::operator|=().

◆ getSwiftImportAsNonGeneric()

llvm::Optional<bool> clang::api_notes::ObjCContextInfo::getSwiftImportAsNonGeneric ( ) const
inline

Definition at line 236 of file Types.h.

Referenced by clang::api_notes::operator==(), and operator|=().

◆ getSwiftObjCMembers()

llvm::Optional<bool> clang::api_notes::ObjCContextInfo::getSwiftObjCMembers ( ) const
inline

Definition at line 246 of file Types.h.

Referenced by clang::api_notes::operator==(), and operator|=().

◆ hasDesignatedInits()

bool clang::api_notes::ObjCContextInfo::hasDesignatedInits ( ) const
inline

Definition at line 233 of file Types.h.

◆ operator|=()

ObjCContextInfo& clang::api_notes::ObjCContextInfo::operator|= ( const ObjCContextInfo RHS)
inline

◆ setDefaultNullability()

void clang::api_notes::ObjCContextInfo::setDefaultNullability ( NullabilityKind  Kind)
inline

Set the default nullability for properties and methods of this class.

Definition at line 228 of file Types.h.

Referenced by operator|=().

◆ setHasDesignatedInits()

void clang::api_notes::ObjCContextInfo::setHasDesignatedInits ( bool  Value)
inline

Definition at line 234 of file Types.h.

◆ setSwiftImportAsNonGeneric()

void clang::api_notes::ObjCContextInfo::setSwiftImportAsNonGeneric ( llvm::Optional< bool Value)
inline

Definition at line 241 of file Types.h.

Referenced by operator|=().

◆ setSwiftObjCMembers()

void clang::api_notes::ObjCContextInfo::setSwiftObjCMembers ( llvm::Optional< bool Value)
inline

Definition at line 250 of file Types.h.

Referenced by operator|=().

◆ stripModuleLocalInfo()

void clang::api_notes::ObjCContextInfo::stripModuleLocalInfo ( )
inline

Strip off any information within the class information structure that is module-local, such as 'audited' flags.

Definition at line 257 of file Types.h.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const ObjCContextInfo LHS,
const ObjCContextInfo RHS 
)
friend

Definition at line 287 of file Types.h.


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