Commit 3754a3d
committed
fix(clang-tidy): re-enable bugprone-unused-local-non-trivial-variable
Re-enables bugprone-unused-local-non-trivial-variable in .clang-tidy-ci.
The check was suppressed in #12431 with 2 reported errors. This PR addresses both:
- autoware_manual_lane_change_handler: 'shift_unavailable_reason' was computed but never used in the subsequent log message. The fix appends it to the RCLCPP_INFO_STREAM so the log now reports the actual reason.
- autoware_behavior_path_side_shift_module: 'centerline_path' (line 211 of scene.cpp) was computed via utils::calcCenterLinePath but never used anywhere in the package. Dating from 2023, it appears to be leftover from a refactor. Removed the dead call.
Refs #12450
Signed-off-by: Vishal Chauhan <40782713+vish0012@users.noreply.github.com>1 parent 54af299 commit 3754a3d
3 files changed
Lines changed: 2 additions & 6 deletions
File tree
- planning
- autoware_manual_lane_change_handler/src
- behavior_path_planner/autoware_behavior_path_side_shift_module/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 211 | | |
216 | 212 | | |
217 | 213 | | |
| |||
0 commit comments