clang 19.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

Public Member Functions

 VariableInfo ()
std::optional< NullabilityKindgetNullability () const
void setNullabilityAudited (NullabilityKind kind)
const std::string & getType () 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 ()
std::optional< boolisSwiftPrivate () const
void setSwiftPrivate (std::optional< bool > Private)
CommonEntityInfooperator|= (const CommonEntityInfo &RHS)
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const


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.
unsigned Unavailable: 1
 Whether this entity is marked unavailable.
unsigned UnavailableInSwift: 1
 Whether this entity is marked unavailable in Swift.
std::string SwiftName
 Swift name of this entity.

Detailed Description

API notes for a variable/property.

Definition at line 311 of file Types.h.

Constructor & Destructor Documentation

◆ VariableInfo()

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

Definition at line 325 of file Types.h.

Member Function Documentation

◆ dump()

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

◆ getNullability()

std::optional< NullabilityKind > clang::api_notes::VariableInfo::getNullability ( ) const

◆ getType()

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

Definition at line 338 of file Types.h.

Referenced by ProcessAPINotes().

◆ operator|=()

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

Definition at line 343 of file Types.h.

References getNullability(), and setNullabilityAudited().

◆ setNullabilityAudited()

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

Definition at line 333 of file Types.h.

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

◆ setType()

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

Definition at line 339 of file Types.h.

References clang::ast_matchers::type.

Friends And Related Function Documentation

◆ operator==

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

Definition at line 357 of file Types.h.

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