Skip to content

Silence Visual Studio warnings for generated or lexer/parser code [blocks: #2310, #2551] #3425

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 2 commits into from
Apr 24, 2019

Conversation

tautschnig
Copy link
Collaborator

There is very little we can do about those warnings.

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@tautschnig tautschnig changed the title Silence Visual Studio warnings for generated or imported code Silence Visual Studio warnings for generated or imported code [blocks: #2310] Nov 15, 2018
@tautschnig tautschnig changed the title Silence Visual Studio warnings for generated or imported code [blocks: #2310] Silence Visual Studio warnings for generated or imported code [blocks: #2310, #2551] Nov 15, 2018
@smowton
Copy link
Contributor

smowton commented Nov 15, 2018

Should these all be push/pop'd so as to scope them to just the generated code, not anyone including them? (Or do they not generate header files?)

@smowton
Copy link
Contributor

smowton commented Nov 15, 2018

Nitpick: to avoid the Catch changes getting thrown away whenever we upgrade to the latest Catch version, how about introducing an intermediate header (say use_catch.h) that configures warnings appropriately then includes the actual catch.hpp, which should never be used directly and should be left exactly matching the shipped version?

@tautschnig tautschnig self-assigned this Nov 15, 2018
@tautschnig
Copy link
Collaborator Author

Should these all be push/pop'd so as to scope them to just the generated code, not anyone including them? (Or do they not generate header files?)

I have just checked: no, these do not end up in generated header files used by non-generated code, just in the generated lexer and parser.

@tautschnig tautschnig force-pushed the vs-silence-generated branch from eb3dbf3 to 36e2aed Compare December 1, 2018 12:40
@tautschnig
Copy link
Collaborator Author

tautschnig commented Dec 1, 2018

Nitpick: to avoid the Catch changes getting thrown away whenever we upgrade to the latest Catch version, how about introducing an intermediate header (say use_catch.h) that configures warnings appropriately then includes the actual catch.hpp, which should never be used directly and should be left exactly matching the shipped version?

This is now done. I might actually put together a separate PR actually updating the header file, the one GCC-8 related local fix that we have has been addressed in Catch 2.x.

This change, however, did considerable increase the size of this PR, please review commit-by-commit.

@tautschnig tautschnig force-pushed the vs-silence-generated branch 3 times, most recently from a8bbe9d to b606e41 Compare December 2, 2018 10:32
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: b606e41).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/93273944

tautschnig added a commit that referenced this pull request Dec 2, 2018
Ensure proper dependencies on json.dir [blocks: #3425]
tautschnig added a commit that referenced this pull request Dec 2, 2018
Add missing module_dependencies.txt files [blocks: #3425]
@tautschnig tautschnig force-pushed the vs-silence-generated branch from b606e41 to db38a2a Compare December 2, 2018 14:58
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: db38a2a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/93282606

@tautschnig tautschnig force-pushed the vs-silence-generated branch from 0c392b2 to abc4253 Compare January 3, 2019 14:11
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

🚫
This PR failed Diffblue compatibility checks (cbmc commit: 0c392b2).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96191957
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

🚫
This PR failed Diffblue compatibility checks (cbmc commit: abc4253).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96203327
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

🚫
This PR failed Diffblue compatibility checks (cbmc commit: d678150).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96283008
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

@tautschnig tautschnig force-pushed the vs-silence-generated branch from d678150 to 780989f Compare January 21, 2019 18:31
thk123 pushed a commit that referenced this pull request Jan 22, 2019
Silence warnings resulting from catch.hpp [blocks: #2310, #3425]
@tautschnig tautschnig force-pushed the vs-silence-generated branch 2 times, most recently from 237ad7f to 39c4ebb Compare January 23, 2019 19:57
@tautschnig tautschnig changed the title Silence Visual Studio warnings for generated or imported code [blocks: #2310, #2551] Silence Visual Studio warnings for generated or lexer/parser code [blocks: #2310, #2551] Jan 23, 2019
@tautschnig
Copy link
Collaborator Author

This PR is now restricted to just silencing warnings in flex/bison generated code.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: 39c4ebb).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/98387964

@owen-mc-diffblue
Copy link
Contributor

It's a bit weird having the comments below the thing that they explain - the normal convention is to do the opposite

@tautschnig tautschnig force-pushed the vs-silence-generated branch from 39c4ebb to ffe36ab Compare January 30, 2019 18:29
@tautschnig
Copy link
Collaborator Author

It's a bit weird having the comments below the thing that they explain - the normal convention is to do the opposite

Ack, I'm not actually sure why I had done it that way. I've fixed this now.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: ffe36ab).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99182850

…on in lexer

Flex generates definitions before system headers are included, and tokens result
in signed/unsigned comparison.
@tautschnig tautschnig force-pushed the vs-silence-generated branch from ffe36ab to c3d3b6a Compare March 14, 2019 20:46
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

⚠️
This PR failed Diffblue compatibility checks (cbmc commit: c3d3b6a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/104501738
Status will be re-evaluated on next push.
Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)

  • the author is not in the list of contributors (e.g. first-time contributors).

  • the compatibility was already broken by an earlier merge.

@kroening kroening merged commit 626ec18 into diffblue:develop Apr 24, 2019
@tautschnig tautschnig deleted the vs-silence-generated branch April 24, 2019 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants