[cfe-dev] Divide by zero reporting

Sujit Kamthe Sujit.Kamthe at kpitcummins.com
Tue Dec 11 01:36:43 PST 2012


Hi,
While running clang tool on a code it was found that if there are multiple divide by zero violations(more than 1) in same file then only the first one is reported and rest of them are not reported.
Even it was found that when a Prestmt<BinaryOperator> check detects/emits a bugreport, it skips the subsequent binary operator nodes from the same file.

Example Code:

int a=23/0; //Detected and reported
int b=34/0; //Not detected

Regards,
Sujit Kamthe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121211/378c30e7/attachment.html>


More information about the cfe-dev mailing list