[clang-tidy] Add check bugprone-misleading-setter-of-reference (#132242)

This commit is contained in:
Balázs Kéri
2025-05-17 10:26:13 +02:00
committed by GitHub
parent 8d0ebd823c
commit d84b97ebb3
8 changed files with 276 additions and 0 deletions

View File

@@ -124,6 +124,12 @@ New checks
pointer and store it as class members without handle the copy and move
constructors and the assignments.
- New :doc:`bugprone-misleading-setter-of-reference
<clang-tidy/checks/bugprone/misleading-setter-of-reference>` check.
Finds setter-like member functions that take a pointer parameter and set a
reference member of the same class with the pointed value.
- New :doc:`bugprone-unintended-char-ostream-output
<clang-tidy/checks/bugprone/unintended-char-ostream-output>` check.