clang  16.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
Collaboration diagram for clang::api_notes::VariableInfo:
Collaboration graph

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


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 299 of file Types.h.

Constructor & Destructor Documentation

◆ VariableInfo()

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

Definition at line 311 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

Definition at line 313 of file Types.h.

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

◆ getType()

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

Definition at line 324 of file Types.h.

◆ operator|=()

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

Definition at line 329 of file Types.h.

References getNullability(), and setNullabilityAudited().

◆ setNullabilityAudited()

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

Definition at line 319 of file Types.h.

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

◆ setType()

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

Definition at line 325 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 343 of file Types.h.

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