pcl icon indicating copy to clipboard operation
pcl copied to clipboard

Add more bugprone-* clang-tidy checks, Part A

Open gnawme opened this issue 1 month ago • 1 comments

Migrate #6368, omitting apps changes to manage the size of the PR.

Added 4 additional bugprone clang-tidy checks and applied fixes

  1. bugprone-assert-side-effect
  2. bugprone-dangling-handle
  3. bugprone-forward-declaration-namespace
  4. bugprone-inaccurate-erase

Summary

These checks improve code safety and correctness by:

  • Preventing subtle bugs from dangling references
  • Ensuring consistent namespace declarations
  • Fixing incorrect container erase patterns
  • Eliminating side effects in assertions

gnawme avatar Nov 24 '25 21:11 gnawme

Some minor changes 😄

larshg avatar Nov 27 '25 13:11 larshg