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

API notes for a variable/property. More...

#include "clang/APINotes/Types.h"

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

Public Member Functions

 VariableInfo ()
 
llvm::Optional< NullabilityKindgetNullability () const
 
void setNullabilityAudited (NullabilityKind kind)
 
const std::stringgetType () const
 
void setType (const std::string &type)
 
VariableInfooperator|= (const VariableInfo &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 VariableInfo &, const VariableInfo &)
 

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

API notes for a variable/property.

Definition at line 300 of file Types.h.

Constructor & Destructor Documentation

◆ VariableInfo()

clang::api_notes::VariableInfo::VariableInfo ( )
inline

Definition at line 312 of file Types.h.

Member Function Documentation

◆ dump()

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

◆ getNullability()

llvm::Optional<NullabilityKind> clang::api_notes::VariableInfo::getNullability ( ) const
inline

Definition at line 314 of file Types.h.

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

◆ getType()

const std::string& clang::api_notes::VariableInfo::getType ( ) const
inline

Definition at line 325 of file Types.h.

◆ operator|=()

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

Definition at line 330 of file Types.h.

References getNullability(), and setNullabilityAudited().

◆ setNullabilityAudited()

void clang::api_notes::VariableInfo::setNullabilityAudited ( NullabilityKind  kind)
inline

Definition at line 320 of file Types.h.

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

◆ setType()

void clang::api_notes::VariableInfo::setType ( const std::string type)
inline

Definition at line 326 of file Types.h.

References clang::ast_matchers::type.

Friends And Related Function Documentation

◆ operator==

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

Definition at line 344 of file Types.h.


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