Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!van-bc!mdavcr!rdr From: rdr@mdavcr.UUCP (Randolph Roesler) Newsgroups: comp.lang.c++ Subject: Re: lint++ -> really "AutoCodeReview" -- Ideas requested. Message-ID: <700@acrux.mdavcr.UUCP> Date: 12 Dec 89 21:33:38 GMT References: <695@acrux.mdavcr.UUCP> <590001@hpcuhc.HP.COM> Reply-To: rdr@mdavcr.UUCP (Randolph Roesler) Organization: MacDonald Dettwiler, Richmond, B.C., Canada Lines: 28 In article <590001@hpcuhc.HP.COM> kenny@hpcuhc.HP.COM (Kenneth Lee) writes: >/ hpcuhc:comp.lang.c++ / rdr@mdavcr.UUCP (Randolph Roesler) / 7:41 pm Dec 7, 1989 / >> >> We had lint in the old days to catch things like >> >> if ( x = 0 ) then ^^^^ >> something_imporant(); >> >> which is almost certainly an error. > >I know it's certainly an error, but what are you trying to point out? > Yes -- I made a typing error -- I typed what I say, rather than what C++ accepts. Catching this error is the compilers job. The possible error of the assignment rather than a comparison would be a lint tool's job. What I want from you (dear net reader), is hueristic rules about situations in C++ which the compiler can not or will not warn you about. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ It's not the size of your signature that Randy Roesler counts - it's how you use it! MacDonald Dettwiler & Assc. email ...!uunet!van-bc!mdavcr!rdr BC Canada 604-278-3411