-
Notifications
You must be signed in to change notification settings - Fork 38
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
Monkey patch in support for C++11 headers #56
Comments
Problem line: https://github.com/google/styleguide/blob/db0a26320f3e930c6ea7225ed53539b4fb31310c/cpplint/cpplint.py#L5770 Maybe we just disable For now you can |
The google style guide seems to mostly allow C++11, I'm not sure how much this has changed since we last synced in cpplint a year and a half ago. Updating to the latest cpplint may reduce these warnings. One of the listed concerns, compiler support for C++11, isn't a problem with commonly used ROS configuration AFAIK. Additionally, It seems that with respect to ROS, ROS2 is using C++11 and it would be nice to share code without unnecessary warings. So, it seems like either updating cpplint (if c++11 warnings have been reduced) or disabling C++11 lints would be a good idea. In the meantime, you should be able to pass in filter arguments to ignore entire classes of errors if you don't want to litter your code with a lot of set(ROSLINT_CPP_OPTS "--filter=+,-build/c++11") Relevant excerpt on C++11 from https://google.github.io/styleguide/cppguide.html#C++11
|
My link was to the current upstream of |
C++11 headers such as
<future>
are "unapproved" in upstream cpplint.py. Support for these should be monkey-patched in.The text was updated successfully, but these errors were encountered: