From owner-freebsd-bugs Sun Jul 8 3:43:27 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C1DB537B408; Sun, 8 Jul 2001 03:43:24 -0700 (PDT) (envelope-from schweikh@FreeBSD.org) Received: (from schweikh@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f68AdsG03611; Sun, 8 Jul 2001 03:39:54 -0700 (PDT) (envelope-from schweikh) Date: Sun, 8 Jul 2001 03:39:54 -0700 (PDT) From: Message-Id: <200107081039.f68AdsG03611@freefall.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 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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