We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#if
For e.g:
print( "" #if true .count #endif , 0 )
swift-format produces:
print( "" #if true .count #endif, 0 )
which the compiler rejects since the comma may not appear on the same line as the #endif.
#endif
rdar://124557891
The text was updated successfully, but these errors were encountered:
For anyone affected, a workaround is to add end empty comment at the end of the #endif line, as follows:
print( "" #if true .count #endif // , 0 )
This will prevent swift-format from joining the lines together (and hence causing the file to no longer compile).
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
For e.g:
swift-format produces:
which the compiler rejects since the comma may not appear on the same line as the
#endif
.rdar://124557891
The text was updated successfully, but these errors were encountered: