Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2001 03:39:54 -0700 (PDT)
From:      <schweikh@FreeBSD.org>
To:        tms2@mail.ptd.net, schweikh@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: misc/18821: lint does not understand C++-style comments
Message-ID:  <200107081039.f68AdsG03611@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: lint does not understand C++-style comments

State-Changed-From-To: open->closed
State-Changed-By: schweikh
State-Changed-When: Sun Jul 8 03:39:06 PDT 2001
State-Changed-Why: 
Lint(1) says "lint - a C program verifier", so it is not clear it should
unterstand C++ syntax. While // is part of ISO 9899:1999 (C99) our lint 
does not support any new syntax introduced by C99, like struct literals,
flexible arrays and others. So instead of supporting just one feature of
C99, the // comments, I think it is better to have lint actually reject
// as it is clearly a syntax error for C89 and many compilers do not            understand it. Lint is also a portability checker, intended to pick             fluff off of C code and // is non-portable fluff. BTW, gcc does NOT
understand // in -ansi -pedantic mode.

Of course we would be pleased if you provided a patch to make lint
(optionally) fully C99 aware and this would have a near 100% chance of
making it into the tree.

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18821

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107081039.f68AdsG03611>