Skip to content
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

Preserve comments #2

Open
dennwc opened this issue Jan 10, 2021 · 1 comment
Open

Preserve comments #2

dennwc opened this issue Jan 10, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dennwc
Copy link
Contributor

dennwc commented Jan 10, 2021

Currently cxgo cannot translate any comments. To make it work, we need some support from cc side.

@dennwc dennwc added the enhancement New feature or request label Jan 10, 2021
@dennwc
Copy link
Contributor Author

dennwc commented Jan 10, 2021

From the chat with cznic:

cc/v3 can capture all semantic white space, which includes comments. Set PreserveWhiteSpace to true in https://godoc.org/modernc.org/cc/v3#Config3.

@dennwc dennwc self-assigned this Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant