[clang] [clang-tools-extra] [clang-tidy] Warn about misuse of sizeof operator in loops. (PR #143205)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 23:33:35 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
----------------
HerrCai0907 wrote:
following other release note format. don't use empty line between check name and content.
https://github.com/llvm/llvm-project/pull/143205
More information about the cfe-commits
mailing list