xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/cert/flp30-c.rst (revision 6e566bc5523f743bc34a7e26f050f1f2b4d699a8)
1.. title:: clang-tidy - cert-flp30-c
2
3cert-flp30-c
4============
5
6This check flags ``for`` loops where the induction expression has a
7floating-point type.
8
9This check corresponds to the CERT C Coding Standard rule
10`FLP30-C. Do not use floating-point variables as loop counters
11<https://www.securecoding.cert.org/confluence/display/c/FLP30-C.+Do+not+use+floating-point+variables+as+loop+counters>`_.
12