clang-tools-extra/docs/clang-tidy/checks/cert/flp30-c.rst
raw| 1 | .. title:: clang-tidy - cert-flp30-c |
| 2 | |
| 3 | cert-flp30-c |
| 4 | ============ |
| 5 | |
| 6 | This check flags ``for`` loops where the induction expression has a |
| 7 | floating-point type. |
| 8 | |
| 9 | This 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>`_. |