Skip to content

[AST] Disable comment printing while emitting diagnostics #15032

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

Merged
merged 1 commit into from
Mar 7, 2018

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Mar 7, 2018

There is a problem in PCH builds where source manager might
end up having unorderable source locations for comments, to work
around this (which is going to be fixed separately) let's
disable comment printing while emitting diagnostics since
such comments are not required.

Resolves: rdar://problem/38203776

There is a problem in PCH builds where source manager might
end up having unorderable source locations for comments, to work
around this (which is going to be fixed separately) let's
disable comment printing while emitting diagnostics since
such comments are not required.

Resolves: rdar://problem/38203776
@xedin xedin requested a review from jrose-apple March 7, 2018 01:47
Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably a good idea anyway. Today any decls we print for diagnostics are either inserted text (see TypeCheckProtocol's use of PrintOptions::printForDiagnostics, which disables this flag already) or something to show on the command line, which only prints one line of context anyway. (That's also what makes it okay that there's no test for this—we don't expect any output to change in practice.)

@xedin
Copy link
Contributor Author

xedin commented Mar 7, 2018

@swift-ci please smoke test

@xedin xedin merged commit 6229450 into swiftlang:master Mar 7, 2018
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