NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/22515 (lint cares too much about comments)



The following reply was made to PR bin/22515; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/22515 (lint cares too much about comments)
Date: Wed, 9 Jun 2021 03:06:24 +0000

 On Sun, Feb 28, 2021 at 09:20:01PM +0000, Roland Illig wrote:
  >   > The -CC option is generally used to support lint comments.
  >  
  >  It's debatable whether a difference in the comment should be considered
  >  different since that is outside the scope of Standard C.
 
 It is and it isn't; there's no reason to think that the option
 (preserve comments in the _output_) should affect the _interpretation_
 of the text.
 
 Consequently I'd consider it a cpp bug, though I also understand why
 it happens and it would be a nuisance to fix.
 
 In the long run lint should probably grow its own cpp that can lint
 cpp usage. (Or import one, or go away entirely in favor of a better
 program checker, etc.)
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index