This is an archive of the discontinued LLVM Phabricator instance.

Improve the scan-build messages
ClosedPublic

Authored by sylvestre.ledru on May 14 2014, 6:44 AM.

Details

Summary

Bikeshed!

Diff Detail

Event Timeline

sylvestre.ledru retitled this revision from to Improve the scan-build messages.
sylvestre.ledru updated this object.
sylvestre.ledru edited the test plan for this revision. (Show Details)
Jean-Daniel added inline comments.
tools/scan-build/scan-build
873

From the following line ($Num > 0 && …), it looks like the Num bug can also be 0, so instead of '== 1', shouldn't it be <= 1 ?

jordan_rose edited edge metadata.May 14 2014, 8:38 PM

"No bugs found" is correct English for "0 bugs found". "No bug found" implies that there will only ever be 0 or 1. "0 bug found" is just incorrect English.

OK. thanks. Sorry about the noise.
However, "1 bug found" is correct, right?

sylvestre.ledru edited edge metadata.
jordan_rose accepted this revision.May 15 2014, 7:44 AM
jordan_rose edited edge metadata.

Yes, that's correct. Thanks, Sylvestre!

This revision is now accepted and ready to land.May 15 2014, 7:44 AM

Merged in commit r208951

tools/scan-build/scan-build
873

When it is 0, I think we have already left the function