Skip to content

Attributes merged without space #799

Closed
@bnbarham

Description

@bnbarham

The following code:

#if os(macOS)
@available(macOS, unavailable)
@_spi(Foo)
#endif
public let myVar = "Test"

Is rewritten as:

#if os(macOS)
  @available(macOS, unavailable)@_spi(Foo)
#endif
public let myVar = "Test"

The #if here is the important part, we don't reflow at all otherwise. Ideally we shouldn't join at all, but if we do, we should at least add a space.

(mirrors rdar://133869717)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions