[cfe-commits] [PATCH][PR11329] StaticAnalyzer: Warn when statement body is a semicolon -- an unintended null statement

Dmitri Gribenko gribozavr at gmail.com
Tue Jan 3 13:05:59 PST 2012


On Tue, Jan 3, 2012 at 11:04 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> On Tue, Jan 3, 2012 at 10:56 PM, Anna Zaks <ganna at apple.com> wrote:
>> Minor syntax issue (occurs twice):
>> +  if(QuietIfBodyOnSeparateLine)
>>  ->
>> +  if (QuietIfBodyOnSeparateLine)
>
> Fixed (see attachment).

Missed one line.

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: null-stmt-body-checker-v3.patch
Type: text/x-diff
Size: 10971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120103/369a0079/attachment.patch>


More information about the cfe-commits mailing list