From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Ludlam Newsgroups: gmane.emacs.help Subject: Re: generate methods body (.cpp) from header (.hh) Date: Mon, 20 Jun 2005 08:34:59 -0400 Organization: The MathWorks, Inc., Natick, MA 01760 Message-ID: References: <42add26f$0$31801$ba624c82@nntp06.dk.telia.net> <87u0jze6ep.fsf@utanet.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119270875 16643 80.91.229.2 (20 Jun 2005 12:34:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2005 12:34:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 20 14:34:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DkLTN-0004k3-J3 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jun 2005 14:33:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DkLZa-0004FS-Oq for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jun 2005 08:40:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!news.mathworks.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: ludlamelinux.dhcp.mathworks.com Original-X-Trace: fred.mathworks.com 1119270899 1914 144.212.109.50 (20 Jun 2005 12:34:59 GMT) Original-X-Complaints-To: news@mathworks.com Original-NNTP-Posting-Date: Mon, 20 Jun 2005 12:34:59 +0000 (UTC) User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:sJgrmVkXDZgbOoGgV67MPB9id60= Original-Xref: shelby.stanford.edu gnu.emacs.help:132073 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27545 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27545 I've been contemplating the code-generation problem for a long time. The cedet site has a very old program I wrote called cparse that generates code in C from definitions. Additionally, semantic already has a couple routines that generates prototypes and such in the semantic-format library. I am generally uninterested in writing a C++ only tool, though I usually prototype stuff for C/C++ first. I do have a new code generation module I've been working on to do just this sort of thing. I just happen to be a bit busy these days and haven't had time to get it working enough to provide a beta, and it does indeed generate method bodies from class templates... well, it would if I had time to get rid of the bugs that is. Eric >>> Klaus Berndl seems to think that: > >well, i read the hint ;-) > >Of course it would not hard (in contrary, would quite simple) for ECB to >to offer this but because ECB is "just" the displayor of informations IMHO >this is not the job of ECB... in addition such a feature is fully major-mode >dependent because header-files do only exist in a few languages! So IMHO >something like this has to be offered by semantic and it's c/c++-part e.g. - >Eric, what do you think? > >To the OP: You should send your question to the cedet-mailing-list... > >Ciao, >Klaus > >On Wed, 15 Jun 2005, Adam Duck wrote: > > >> why isn't there a ecb- or cedet-function for this? *hint* *hint* >> >> bye, Adam. >