-
Notifications
You must be signed in to change notification settings - Fork 110
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
cpplint incorrectly labels C++17 headers as C headers #309
Comments
This also comes up for |
@jacobperron Try building the latest |
@zflat The issue is with cpplint.py was copied from the Google style guide here: https://github.com/google/styleguide/blob/71ec7f1e524969c19ce33cfc72e8e023f2b98ee2/cpplint/cpplint.py I tried pulling in changes from upstream, but it doesn't appear to fix the issue. We may have to come up with a patch ourselves. |
Updating to a different version of cpplint seems to fix this issue. I've opened a PR #324 proposing we switch to tracking this fork: https://github.com/cpplint/cpplint |
On that note, this also happens with |
Consider this example:
IIUC, following the Google C++ guide, it has the correct, alphabetically sorted, list of included C++ headers.
However, ament_cpplint complains that
<optional>
is a C header and should appear before<iostream>
.I've noticed that the same issue happens for all C++17 headers, e.g.
<filesystem>
. cpplint doesn't seem to be aware of them. Perhaps there is a patch upstream to fix this, but I haven't taken a look.The text was updated successfully, but these errors were encountered: