Skip to content

Conversation

@mteper
Copy link
Contributor

@mteper mteper commented Jan 19, 2016

Before:

(#if_stmt
  (#if:
    (stuff)     #else
    (stuff))

After:

(#if_stmt
  (#if:
    (stuff))
  (#else:
    (stuff)))

Notable differences:

  • #if block is closed
  • #else block is treated same as #if block, starts on new line, token terminated with :
  • #else block is closed

Before:
```
(#if_stmt
  (#if:
    (stuff)     #else
    (stuff))
```

After:
```
(#if_stmt
  (#if:
    (stuff))
  (#else:
    (stuff)))
```

Notable differences:
 - #if block is closed
 - #else block is treated same as #if block, starts on new line, token terminated with `:`
 - #else block is closed
lattner added a commit that referenced this pull request Jan 20, 2016
[AST] Formatting consistency in conditional compilation output
@lattner lattner merged commit f7257c2 into swiftlang:master Jan 20, 2016
@lattner
Copy link
Contributor

lattner commented Jan 20, 2016

Nice catch!

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 this pull request may close these issues.

2 participants