public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: c/c++ validator
@ 2005-06-19  2:41 Florian Krohm
  0 siblings, 0 replies; 14+ messages in thread
From: Florian Krohm @ 2005-06-19  2:41 UTC (permalink / raw)
  To: gdr; +Cc: vercetti, gcc

> Tommy Vercetti <vercetti@zlew.org> writes:
> 
> | 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,
> 

Gabriel Dos Reis wrote:

> Most of the tools I know of are either "research projects" (which
> means that they basically "die" when the professor get promoted or the
> students graduate; they are lots of them out there) or are/ use
> proprietary tools. 
> 
> We need to get GCC/g++ to a competing level of usefulness but the road
> is not quite that straight.
> 

Yes, twice. Among the things that you need are:

- detailled source code correspondence for every TREE node,
- you want to know whether a TREE node represents something that was
  compiler generated as opposed to written in the source (e.g. for
  cast operations)
- you most likely want an unlowered representation of the C++ source
  (and that will be the real hard part)
- you don't want the frontend to optimize anything, e.g no folding
  (ideally you want both the folded and unfolded expression)
- you might want to know whether a certain TREE node was the result of
  a macro expansion

I used a very old version of GCC (3.0.1) as the frontend for some 
static checker. We succeeded in hacking in support for some of the
above but C++ was a royal pain because of lowering. 

Florian

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: c/c++ validator
@ 2005-06-19 23:59 David Bremner
  0 siblings, 0 replies; 14+ messages in thread
From: David Bremner @ 2005-06-19 23:59 UTC (permalink / raw)
  To: gcc

I complied this list for the local C++ users group several months ago, 
it might be helpful.
http://www.nwcpp.org/Misc/Tools_DavidBremner.html

Regards,
David Bremner

^ permalink raw reply	[flat|nested] 14+ messages in thread
* c/c++ validator
@ 2005-06-18 22:24 Tommy Vercetti
  2005-06-18 22:32 ` Mathieu Malaterre
  2005-06-19  3:04 ` Mark Loeser
  0 siblings, 2 replies; 14+ messages in thread
From: Tommy Vercetti @ 2005-06-18 22:24 UTC (permalink / raw)
  To: gcc

Hi folks

I would like to ask you about source validation software. Software that runs 
trough source code, and attempts to find any possible memory leaks, and other 
problems. Is there anything opensource for C or/and C++ out there ?

I know it's the wrong list to ask for it, but that's quite close to compilers, 
and some of you may know about it.

Thanks.

-- 
Vercetti

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-06-20 20:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-19  2:41 c/c++ validator Florian Krohm
  -- strict thread matches above, loose matches on Subject: below --
2005-06-19 23:59 David Bremner
2005-06-18 22:24 Tommy Vercetti
2005-06-18 22:32 ` Mathieu Malaterre
2005-06-18 22:38   ` Tommy Vercetti
2005-06-19  1:03     ` Gabriel Dos Reis
2005-06-19  1:44       ` Tommy Vercetti
2005-06-19  2:05         ` Gabriel Dos Reis
2005-06-19  2:16           ` Mathieu Malaterre
2005-06-19  2:48             ` Gabriel Dos Reis
2005-06-19 20:58               ` Tommy Vercetti
2005-06-20 19:53                 ` Kai Henningsen
2005-06-20 20:58                   ` Tommy Vercetti
2005-06-19  3:04 ` Mark Loeser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).