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

Lex: Fixed C2001 'newline in constant' warning in generated lexers #324

Merged

Conversation

Kojoley
Copy link
Collaborator

@Kojoley Kojoley commented Dec 14, 2017

Closes https://svn.boost.org/trac10/ticket/11540.

Actually this should have been caught by regression_matlib_generate_switch
test, but it is not complex enough to cover all cases. We do not have the
coverage reports yet, but the fix is trivial so I think it is ok.

Closes https://svn.boost.org/trac10/ticket/11540.

Actually this should have been caught by `regression_matlib_generate_switch`
test, but it is not complex enough to cover all cases. We do not have the
coverage reports yet, but the fix is trivial so I think it is ok.
@hkaiser
Copy link
Collaborator

hkaiser commented Dec 14, 2017

Could you explain what you had in mind with this patch, please? From what I see you're now comparing against a multi-character literal - is that legal in the first place?

@hkaiser
Copy link
Collaborator

hkaiser commented Dec 14, 2017

Sorry, I take that back - I see now what you're doing.

Copy link
Collaborator

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Kojoley Kojoley merged commit 20a63aa into boostorg:develop Dec 15, 2017
@Kojoley Kojoley deleted the lex-generated-lexer-newline_in_constant branch December 15, 2017 13:21
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