Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!cse!texas!harrison From: harrison@csl.dl.nec.com (Mark Harrison) Newsgroups: comp.unix.programmer Subject: Re: Lint woes Message-ID: <1991May24.144941.11097@csl.dl.nec.com> Date: 24 May 91 14:49:41 GMT References: <1991May21.033422.21445@kfw.COM> Organization: NEC America, C & C Software Development Lab Lines: 32 In article <1991May21.033422.21445@kfw.COM> dan@kfw.com (Dan Mick) writes: >Is it just Sun's lint that won't detect nested comments? > >Are all lints this stupid (that is, do they all just accept output from cpp >without checking the original source)? Try Gimpel's flexelint/PC lint: $ cat nested.c main() { /* foo * / /* bar */ } $ flint -e533 nested.c FlexeLint (U32) Ver. 4.00h, Copyright Gimpel Software 1985-1990 --- Object: /usr/local/lib/lc.lob --- Object: /usr/local/lib/lm.lob --- Module: nested.c nested.c 4 Warning 602: Comment within comment $ The flag -e533 turns off: nested.c 5 Warning 533: Return mode of main inconsistent with line 1 -- Mark Harrison | Note: harrison@ssd.dl.nec.com and harrison@csl.dl.nec.com | necssd!harrison are not operating at (214)518-5050 | present. Please forward mail through the | above address. Sorry for the inconvenience.