Skip to content

Attributes merged without space #799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bnbarham opened this issue Aug 23, 2024 · 0 comments · Fixed by #800
Closed

Attributes merged without space #799

bnbarham opened this issue Aug 23, 2024 · 0 comments · Fixed by #800

Comments

@bnbarham
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant