Skip to content

C++ types declared within unimportable type are not imported #60005

@egorzhdan

Description

@egorzhdan

The MLIRContext C++ type is not imported into Swift by default, because is has a deleted copy constructor: https://github.com/llvm/llvm-project/blob/f0cd5389850589fbf8a3ce77cea2539579bd8028/mlir/include/mlir/IR/MLIRContext.h#L55

However, another type (Threading) declared within MLIRContext is not imported, even though there is nothing preventing Swift from importing it.
https://github.com/llvm/llvm-project/blob/f0cd5389850589fbf8a3ce77cea2539579bd8028/mlir/include/mlir/IR/MLIRContext.h#L57

Can Swift treat MLIRContext as a namespace in this case, importing it as an enum with no cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions