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

Consider files with '.hh' extension as C++ headers #374

Merged
merged 1 commit into from
May 5, 2022

Conversation

jacobperron
Copy link
Contributor

Without this change, these files are considered to be C system headers.
This change affects the expected include order with respect to '.hh' files.


I ran across this since Gazebo uses the .hh extension for C++ headers.

If this change is acceptable, then I'll check for any instances across the ROS 2 core packages and propose a fix upstream.

Without this change, these files are considered to be C system headers.
This change affects the expected include order with respect to '.hh' files.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Copy link

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Sweet!

@jacobperron
Copy link
Contributor Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

jacobperron added a commit to ros2/rviz that referenced this pull request May 5, 2022
Related to ament/ament_lint#374

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Contributor Author

I overlooked one instance of .hh files in rviz, fixed in ros2/rviz#858

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@jacobperron jacobperron merged commit 271f9bd into master May 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the jacob/consider_hh_as_cpp_header branch May 5, 2022 22:35
jacobperron added a commit to ros2/rviz that referenced this pull request May 5, 2022
Related to ament/ament_lint#374

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request May 5, 2022
Without this change, these files are considered to be C system headers.
This change affects the expected include order with respect to '.hh' files.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to ros2/rviz that referenced this pull request May 5, 2022
Related to ament/ament_lint#374

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request May 9, 2022
Without this change, these files are considered to be C system headers.
This change affects the expected include order with respect to '.hh' files.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to ros2/rviz that referenced this pull request May 9, 2022
Related to ament/ament_lint#374

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request May 9, 2022
Without this change, these files are considered to be C system headers.
This change affects the expected include order with respect to '.hh' files.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request May 9, 2022
Without this change, these files are considered to be C system headers.
This change affects the expected include order with respect to '.hh' files.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Contributor Author

Upstream PR: cpplint/cpplint#202

@wep21 wep21 mentioned this pull request May 18, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants