pcl
pcl copied to clipboard
Add more bugprone-* clang-tidy checks, Part A
Migrate #6368, omitting apps changes to manage the size of the PR.
Added 4 additional bugprone clang-tidy checks and applied fixes
bugprone-assert-side-effectbugprone-dangling-handlebugprone-forward-declaration-namespacebugprone-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
Some minor changes 😄