diff options
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/bugprone/float-loop-counter.rst')
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/bugprone/float-loop-counter.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone/float-loop-counter.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone/float-loop-counter.rst new file mode 100644 index 0000000..e663b40 --- /dev/null +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone/float-loop-counter.rst @@ -0,0 +1,13 @@ +.. title:: clang-tidy - bugprone-float-loop-counter + +bugprone-float-loop-counter +=========================== + +Flags ``for`` loops where the induction expression has a floating-point type. + +References +---------- + +This check corresponds to the CERT C Coding Standard rule +`FLP30-C. Do not use floating-point variables as loop counters +<https://www.securecoding.cert.org/confluence/display/c/FLP30-C.+Do+not+use+floating-point+variables+as+loop+counters>`_. |
