[all-commits] [llvm/llvm-project] 0c55ad: [clang-tidy] fix false positive that floating poin...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Sun Sep 15 19:17:09 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0c55ad11ab3857056bb3917fdf087c4aa811b790
https://github.com/llvm/llvm-project/commit/0c55ad11ab3857056bb3917fdf087c4aa811b790
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2024-09-16 (Mon, 16 Sep 2024)
Changed paths:
M clang-tools-extra/clang-tidy/cert/FloatLoopCounter.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/cert/flp30-c.c
Log Message:
-----------
[clang-tidy] fix false positive that floating point variable only used in increment expr in cert-flp30-c (#108706)
Fixes: #108049
cert-flp30-c only provides non-compliant example with normal loop.
Essentially it wants to avoid that floating point variables are used as
loop counters which are checked in condition expr and modified in
increment expr.
This patch wants to give more precise matcheres to identify this cases.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list