Add a new check, cert-flp30-c, that diagnoses loop induction expressions of floating...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 19 Feb 2016 14:03:20 +0000 (14:03 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 19 Feb 2016 14:03:20 +0000 (14:03 +0000)
commit611d2e4ee6a5150b45659abafd76e5917d4382a7
tree3872485262322b245a83bc1c270fba2f39c1b786
parent7ca8a826f407e4d408e503afa14df9b7f147ba11
Add a new check, cert-flp30-c, that diagnoses loop induction expressions of floating-point type. This check corresponds to the CERT secure coding rule: https://securecoding.cert.org/confluence/display/c/FLP30-C.+Do+not+use+floating-point+variables+as+loop+counters

llvm-svn: 261324
clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
clang-tools-extra/clang-tidy/cert/CMakeLists.txt
clang-tools-extra/clang-tidy/cert/FloatLoopCounter.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/cert/FloatLoopCounter.h [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/cert-flp30-c.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/cert-flp30-c.c [new file with mode: 0644]