class ParamInfo

Declaration

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

Description

Describes a function or method parameter.

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

Inherits from: VariableInfo

Member Variables

private unsigned int NoEscapeSpecified
Whether noescape was specified.
private unsigned int NoEscape
Whether the this parameter has the 'noescape' attribute.
private unsigned int RawRetainCountConvention
Only relevant for out-parameters.

Inherited from CommonEntityInfo:

public UnavailableMsg
public Unavailable
public UnavailableInSwift
public SwiftName

Method Overview

Inherited from VariableInfo:

Inherited from CommonEntityInfo:

Methods

ParamInfo()

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

void dump(llvm::raw_ostream& OS) const

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

Parameters

llvm::raw_ostream& OS

llvm::Optional<RetainCountConventionKind>
getRetainCountConvention() const

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

llvm::Optional<bool> isNoEscape() const

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

void setNoEscape(llvm::Optional<bool> Value)

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

Parameters

llvm::Optional<bool> Value

void setRetainCountConvention(
    llvm::Optional<RetainCountConventionKind>
        Value)

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

Parameters

llvm::Optional<RetainCountConventionKind> Value