From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31768 invoked by alias); 19 Jun 2005 02:48:45 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 31748 invoked by uid 22791); 19 Jun 2005 02:48:39 -0000 Received: from smtp-100-sunday.noc.nerim.net (HELO mallaury.noc.nerim.net) (62.4.17.100) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 19 Jun 2005 02:48:39 +0000 Received: from uniton.integrable-solutions.net (gdr.net1.nerim.net [62.212.99.186]) by mallaury.noc.nerim.net (Postfix) with ESMTP id D900B62D02; Sun, 19 Jun 2005 04:48:33 +0200 (CEST) Received: from uniton.integrable-solutions.net (localhost [127.0.0.1]) by uniton.integrable-solutions.net (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j5J2mfKY024902; Sun, 19 Jun 2005 04:48:41 +0200 Received: (from gdr@localhost) by uniton.integrable-solutions.net (8.12.10/8.12.10/Submit) id j5J2mf0N024901; Sun, 19 Jun 2005 04:48:41 +0200 To: Mathieu Malaterre Cc: gcc@gcc.gnu.org Subject: Re: c/c++ validator References: <200506190024.18033@gj-laptop> <200506190038.07506@gj-laptop> <200506190344.07131@gj-laptop> <42B4D584.5080800@nycap.rr.com> From: Gabriel Dos Reis In-Reply-To: <42B4D584.5080800@nycap.rr.com> Date: Sun, 19 Jun 2005 02:48:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-06/txt/msg00790.txt.bz2 Mathieu Malaterre writes: | Gabriel Dos Reis wrote: | > Tommy Vercetti writes: | > | On Sunday 19 June 2005 03:03, you wrote: | > | > Tommy Vercetti writes: | > | > | On Sunday 19 June 2005 00:32, you wrote: | > | > | > Something like: | > | > | > | > | > | > http://www.cs.rpi.edu/~gregod/STLlint/STLlint.html | > | > | | > | > | Yeah, but for more than just STL, and opensource. C++ checker that | > | > | is going to work for instance for KDE. | > | > | Wonder why they use proprietary parser, | > | > | > | > maybe because they work? ;-p | > | | > | there are opensource | > | > | parsers around, like elsa, or gcc c++ parser. | > | > | > | > Elsa does not parse C++. | > | Elsa is for C/C++, so it says on their website. | > I know what the website says. My comment was about the actual *uses* | > of the parser. Have you tried it on actual C++ programs? | | How about gccxml: | | http://www.gccxml.org It is a not C++ parser :-) -- if you're interested in function bodies and other more fundamental things, you lose. It suffers from the same problems (at least ones we've found quite annoying) of using GCC currently: too much of low-level stuff directly geared to code generation as understood by GCC now, and C++ programs are not represented at the most abstract level (contrast that with a celebrated C++ front-end on the market). And it also shares problems with Elsa, no real support for templates (although the case of Elsa is slightly "worse" :-)). Now, if you're just interested in simple "toplevel" decls, then that might be fine :-) -- Gaby