class VariableInfo

Declaration

class VariableInfo : public CommonEntityInfo { /* full declaration omitted */ };

Description

API notes for a variable/property.

Declared at: clang/include/clang/APINotes/Types.h:299

Inherits from: CommonEntityInfo

Member Variables

private unsigned int NullabilityAudited
Whether this property has been audited for nullability.
private unsigned int Nullable
The kind of nullability for this property. Only valid if the nullability has been audited.
private std::string Type
The C type of the variable, as a string.

Inherited from CommonEntityInfo:

public UnavailableMsg
public Unavailable
public UnavailableInSwift
public SwiftName

Method Overview

Inherited from CommonEntityInfo:

Methods

VariableInfo()

Declared at: clang/include/clang/APINotes/Types.h:311

void dump(llvm::raw_ostream& OS) const

Declared at: clang/include/clang/APINotes/Types.h:340

Parameters

llvm::raw_ostream& OS

llvm::Optional<NullabilityKind> getNullability()
    const

Declared at: clang/include/clang/APINotes/Types.h:313

const std::string& getType() const

Declared at: clang/include/clang/APINotes/Types.h:324

void setNullabilityAudited(
    clang::NullabilityKind kind)

Declared at: clang/include/clang/APINotes/Types.h:319

Parameters

clang::NullabilityKind kind

void setType(const std::string& type)

Declared at: clang/include/clang/APINotes/Types.h:325

Parameters

const std::string& type