Skip to content

Conversation

@weswigham
Copy link
Member

Fixes #24021

Since comments are the only way we introduce a line terminator (as we do not preserve input whitespace in general), simply checking for the presence of a leading comment is sufficient for checking if we need to preserve the parens when removing the parens around a cast or not.

@weswigham weswigham merged commit b58e4e1 into microsoft:master May 14, 2018
@weswigham weswigham deleted the asi-parens branch May 14, 2018 18:20
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants