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

Use <> for non-local headers #1734

Merged
merged 1 commit into from
Nov 19, 2022
Merged

Use <> for non-local headers #1734

merged 1 commit into from
Nov 19, 2022

Conversation

ChrisThrasher
Copy link
Contributor

@ChrisThrasher ChrisThrasher commented Nov 17, 2022

Description

Closes #1724.

Unless a header lives in the same or a child directory of the file including it, it's recommended to use <> for the #include statement.

For more information, see the C++ Core Guidelines item SF.12

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf12-prefer-the-quoted-form-of-include-for-files-relative-to-the-including-file-and-the-angle-bracket-form-everywhere-else

I tried to leave quotes around headers that exist in the same directory (or a child directory) of the file including them which his why not all headers are using <>.

@codecov
Copy link

codecov bot commented Nov 17, 2022

Codecov Report

Base: 50.97% // Head: 50.95% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (8c2c6f8) compared to base (99a4a43).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1734      +/-   ##
==========================================
- Coverage   50.97%   50.95%   -0.02%     
==========================================
  Files         378      378              
  Lines       31658    31658              
==========================================
- Hits        16135    16128       -7     
- Misses      15523    15530       +7     
Impacted Files Coverage Δ
...n/allvalid/collision_detector_allocator_allvalid.h 100.00% <ø> (ø)
...ction_bullet/collision_detector_allocator_bullet.h 100.00% <ø> (ø)
...src/bullet_integration/bullet_cast_bvh_manager.cpp 52.86% <ø> (ø)
...bullet_integration/bullet_discrete_bvh_manager.cpp 50.00% <ø> (ø)
...ion_bullet/src/bullet_integration/bullet_utils.cpp 64.77% <ø> (ø)
.../src/bullet_integration/contact_checker_common.cpp 84.73% <ø> (ø)
...bullet/src/bullet_integration/ros_bullet_utils.cpp 92.86% <ø> (ø)
...n_detection_fcl/collision_detector_allocator_fcl.h 100.00% <ø> (ø)
...on_distance_field/collision_distance_field_types.h 59.19% <ø> (ø)
...sion_distance_field/collision_env_distance_field.h 4.77% <ø> (ø)
... and 63 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Unless a header lives in the same or a child directory of the file
including it, it's recommended to use <> for the #include statement.

For more information, see the C++ Core Guidelines item SF.12

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf12-prefer-the-quoted-form-of-include-for-files-relative-to-the-including-file-and-the-angle-bracket-form-everywhere-else
@henningkayser henningkayser added backport-galactic Mergify label that triggers a PR backport to Galactic backport-humble Mergify label that triggers a PR backport to Humble labels Nov 18, 2022
@tylerjw tylerjw merged commit 7a1f2a1 into moveit:main Nov 19, 2022
mergify bot pushed a commit that referenced this pull request Nov 19, 2022
Unless a header lives in the same or a child directory of the file
including it, it's recommended to use <> for the #include statement.

For more information, see the C++ Core Guidelines item SF.12

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf12-prefer-the-quoted-form-of-include-for-files-relative-to-the-including-file-and-the-angle-bracket-form-everywhere-else
(cherry picked from commit 7a1f2a1)

# Conflicts:
#	moveit_core/collision_detection_bullet/src/bullet_integration/bullet_cast_bvh_manager.cpp
#	moveit_core/collision_distance_field/include/moveit/collision_distance_field/collision_distance_field_types.h
#	moveit_core/collision_distance_field/include/moveit/collision_distance_field/collision_env_distance_field.h
#	moveit_core/constraint_samplers/include/moveit/constraint_samplers/default_constraint_samplers.h
#	moveit_core/kinematic_constraints/src/kinematic_constraint.cpp
#	moveit_core/kinematic_constraints/src/utils.cpp
#	moveit_core/planning_scene/include/moveit/planning_scene/planning_scene.h
#	moveit_core/robot_trajectory/include/moveit/robot_trajectory/robot_trajectory.h
#	moveit_core/trajectory_processing/include/moveit/trajectory_processing/iterative_spline_parameterization.h
#	moveit_core/trajectory_processing/include/moveit/trajectory_processing/iterative_time_parameterization.h
#	moveit_planners/pilz_industrial_motion_planner/include/joint_limits/joint_limits_rosparam.hpp
#	moveit_planners/pilz_industrial_motion_planner/include/pilz_industrial_motion_planner/limits_container.h
#	moveit_planners/pilz_industrial_motion_planner/src/command_list_manager.cpp
#	moveit_planners/pilz_industrial_motion_planner/src/joint_limits_container.cpp
#	moveit_planners/pilz_industrial_motion_planner/src/limits_container.cpp
#	moveit_planners/pilz_industrial_motion_planner/src/pilz_industrial_motion_planner.cpp
#	moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_ptp.cpp
#	moveit_ros/planning_interface/py_bindings_tools/src/roscpp_initializer.cpp
#	moveit_setup_assistant/moveit_setup_assistant/src/setup_assistant_widget.cpp
#	moveit_setup_assistant/moveit_setup_core_plugins/src/configuration_files_widget.cpp
#	moveit_setup_assistant/moveit_setup_core_plugins/src/start_screen_widget.cpp
#	moveit_setup_assistant/moveit_setup_framework/src/rviz_panel.cpp
#	moveit_setup_assistant/src/setup_assistant_main.cpp
#	moveit_setup_assistant/src/widgets/configuration_files_widget.h
#	moveit_setup_assistant/src/widgets/header_widget.cpp
#	moveit_setup_assistant/src/widgets/navigation_widget.cpp
#	moveit_setup_assistant/src/widgets/setup_assistant_widget.h
#	moveit_setup_assistant/src/widgets/start_screen_widget.h
mergify bot pushed a commit that referenced this pull request Nov 19, 2022
Unless a header lives in the same or a child directory of the file
including it, it's recommended to use <> for the #include statement.

For more information, see the C++ Core Guidelines item SF.12

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf12-prefer-the-quoted-form-of-include-for-files-relative-to-the-including-file-and-the-angle-bracket-form-everywhere-else
(cherry picked from commit 7a1f2a1)

# Conflicts:
#	moveit_core/robot_trajectory/include/moveit/robot_trajectory/robot_trajectory.h
#	moveit_planners/pilz_industrial_motion_planner/include/pilz_industrial_motion_planner/limits_container.h
#	moveit_planners/pilz_industrial_motion_planner/src/command_list_manager.cpp
#	moveit_planners/pilz_industrial_motion_planner/src/limits_container.cpp
#	moveit_planners/pilz_industrial_motion_planner/src/pilz_industrial_motion_planner.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-galactic Mergify label that triggers a PR backport to Galactic backport-humble Mergify label that triggers a PR backport to Humble
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardize includes to use <> style
4 participants