class ObjCContextInfo

Declaration

class ObjCContextInfo : public CommonTypeInfo { /* full declaration omitted */ };

Description

Describes API notes data for an Objective-C class or protocol.

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

Inherits from: CommonTypeInfo

Member Variables

private unsigned int HasDefaultNullability
Whether this class has a default nullability.
private unsigned int DefaultNullability
The default nullability.
private unsigned int HasDesignatedInits
Whether this class has designated initializers recorded.
private unsigned int SwiftImportAsNonGenericSpecified
private unsigned int SwiftImportAsNonGeneric
private unsigned int SwiftObjCMembersSpecified
private unsigned int SwiftObjCMembers

Inherited from CommonEntityInfo:

public UnavailableMsg
public Unavailable
public UnavailableInSwift
public SwiftName

Method Overview

Inherited from CommonTypeInfo:

Inherited from CommonEntityInfo:

Methods

ObjCContextInfo()

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

void dump(llvm::raw_ostream& OS)

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

Parameters

llvm::raw_ostream& OS

llvm::Optional<NullabilityKind>
getDefaultNullability() const

Description

Determine the default nullability for properties and methods of this class. eturns the default nullability, if implied, or None if there is no

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

llvm::Optional<bool> getSwiftImportAsNonGeneric()
    const

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

llvm::Optional<bool> getSwiftObjCMembers() const

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

bool hasDesignatedInits() const

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

void setDefaultNullability(
    clang::NullabilityKind Kind)

Description

Set the default nullability for properties and methods of this class.

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

Parameters

clang::NullabilityKind Kind

void setHasDesignatedInits(bool Value)

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

Parameters

bool Value

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

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

Parameters

llvm::Optional<bool> Value

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

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

Parameters

llvm::Optional<bool> Value

void stripModuleLocalInfo()

Description

Strip off any information within the class information structure that is module-local, such as 'audited' flags.

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