[clang] [clang-tools-extra] [clang-tidy] Warn about misuse of sizeof operator in loops. (PR #143205)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 13 00:16:55 PDT 2025
================
@@ -219,6 +219,12 @@ Changes in existing checks
tolerating fix-it breaking compilation when functions is used as pointers
to avoid matching usage of functions within the current compilation unit.
+- Improved :doc: `bugprone-sizeof-expression
+ <clang-tidy/checks/bugprone/bugprone-sizeof-expression>` check.
+
+ Introduced WarnOnSizeOfInLoopTermination sub-class to detect misuses of sizeof expression
----------------
vbvictor wrote:
Please make lines no more than 80 characters long
https://github.com/llvm/llvm-project/pull/143205
More information about the cfe-commits
mailing list