Topic: C++ beautifier


Author: tmjones@eos.ncsu.edu (Over Yonder)
Date: 25 Aug 1994 14:38:15 GMT
Raw View
Does anyone know where I can find a C++ beautifier.  Not only would I like
for my code to be indented correctly I would like spacing improved and
possibly lines cut after 80 spaces




Author: yared@inf.enst.fr (Nadim Yared)
Date: 31 May 93 12:38:24 GMT
Raw View
I just found a modified GNU:indent for C++ sources at:

 iamsun.unibe.ch: /C++/tools/indent.tar.Z

I had a little problem compiling with sunos 4.1.3, the file args.c refused
to compile. Small modifications were needed. If anybody faces the same
problem, maybe i could post the patches.

Regards,
Nadim YARED

--
yared@inf.enst.fr   Telecom Paris


      _/      _/_/  _/_/_/     _/_/_/_/   _/_/_/  _/     _/
     _/_/    _/    _/   _/    _/     _/    _/    _/_/ _/_/
    _/  _/  _/   _/     _/   _/      _/   _/    _/  _/ _/
   _/    _/_/   _/_/_/_/_/  _/      _/   _/    _/     _/
_/_/      _/  _/        _/ _/_/_/_/_/ _/_/_/  _/     _/

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/




Author: daku@bnr.ca (Mark Daku)
Date: Mon, 31 May 1993 18:06:27 GMT
Raw View
Hello All,

Thanks I have the man pages for indent.6.5 now.  Product looks good
however I would like some more control over comments.  I would like to see
options to control block coments. options to control in line code comments. etc.

Something like for lines with code and comments move comment to first tab stop
right of code.  This would increase in mymind the readability of the code.

Also I noted that indent breaks c++ comments and does not comment the next line.
I have to manually go into every file and fix this. (PAIN)

However ideally I would like to see an implementation of this in the C++ mode
for emacs.  Something like c++mode-indent-buffer and c++mode-indent-region.

Since I know zip about lisp I can't touch this or even think about trying to
implement this in lisp.

Mark Daku
Bell Northern Research
Ottawa Ont. Canada
daku@bnr.ca




Author: muzok@microsoft.com (Muzaffer Kal)
Date: 03 Jun 93 22:01:16 GMT
Raw View
In article <1993May31.000610.2087@bmers95.bnr.ca> daku@bnr.ca wrote:
> I grabbed the indent program and it works great.  However I can't
> find the help file or a man file or even a command option that
> lists all the options and what they do.  Can someone please
> post the options man page.
>
> Or mail it to me.
>
> Mark Daku
> Bell Northern Research
> Ottawa Ont.
> daku@bnr.ca

I'd be very much interested in man pages for Indent also. As for listing
the options, just type a bogus option; indent -? works most of the time and
you will see something like
indent: -? illegal option
usage: indent [-(a number of digits and chars)] files

not very helpful.

muzo




Author: daku@bnr.ca (Mark Daku)
Date: Mon, 31 May 1993 00:06:10 GMT
Raw View
I grabbed the indent program and it works great.  However I can't
find the help file or a man file or even a command option that
lists all the options and what they do.  Can someone please
post the options man page.

Or mail it to me.

Mark Daku
Bell Northern Research
Ottawa Ont.
daku@bnr.ca




Author: rms@calvin.srl.ford.com (Ron Shapiro)
Date: Mon, 17 May 1993 13:54:11 GMT
Raw View
In regards to the Dr. Dobbs Journal revision to the indent program for
C++:

Dr. Dobbs Journal listings are available via ftp from ftp.mv.com.
The entries are listed by month of issue, so if you know which
issue the article is in, you can get it from there.

Ron




Author: cbrooks@afit.af.mil (Christopher L Brooks)
Date: Tue, 18 May 1993 12:32:59 GMT
Raw View
rms@calvin.srl.ford.com (Ron Shapiro) writes:

>In regards to the Dr. Dobbs Journal revision to the indent program for
>C++:

>Dr. Dobbs Journal listings are available via ftp from ftp.mv.com.
>The entries are listed by month of issue, so if you know which
>issue the article is in, you can get it from there.

>Ron

Does anyone know the issue in which this can be found?  I hunted around
for a bit but was unable to find it.  I did not go through all of the
indeces...


--
Chris Brooks
cbrooks@afit.af.mil




Author: npratt@glacier.sim.es.com (Nevin Pratt)
Date: 11 May 1993 20:51:33 GMT
Raw View
I've been looking high and low for a working C++ beatifier, without luck.

I've been thinking about modifying GNU's "indent" program to handle C++.
The only current deficiency that I can spot right off is the way it likes to
put white space between the colons in "::", but if this was the only problem
with it, I would have thought that somebody would have fixed this long ago.
What else is "broken" in GNU's indent program for supporting C++?

Or better yet, does anybody have a working C++ beautifier?

Thanks,

Nevin





Author: erc@netcom.com (Eric Smith)
Date: Fri, 14 May 1993 21:20:04 GMT
Raw View
In article <1sp3kl$fr6@cnn.sim.es.com> npratt@glacier.sim.es.com writes:
>I've been thinking about modifying GNU's "indent" program to handle C++.
>The only current deficiency that I can spot right off is the way it likes to
>put white space between the colons in "::", but if this was the only problem
>with it, I would have thought that somebody would have fixed this long ago.
>What else is "broken" in GNU's indent program for supporting C++?

It's easy to find out what else is broken: first, use the present
version, then edit the result, doing a global search and replace with
your editor to replace the ": :"s with "::"s, then run it through your
C++ compiler to see what else it complains about.

You can also make a quick and dirty version using awk or equivalent,
using the present indent program and piping the result through your awk
program, to fix the "::" problem and any other problems you find, and
package the whole thing as a shell script.





Author: mhentges@shamu.micro.umn.edu (Michael Hentges)
Date: Sun, 16 May 1993 01:20:14 GMT
Raw View
In <1sp3kl$fr6@cnn.sim.es.com> npratt@glacier.sim.es.com (Nevin Pratt) writes:

>I've been looking high and low for a working C++ beatifier, without luck.

>I've been thinking about modifying GNU's "indent" program to handle C++.
>The only current deficiency that I can spot right off is the way it likes to
>put white space between the colons in "::", but if this was the only problem
>with it, I would have thought that somebody would have fixed this long ago.
>What else is "broken" in GNU's indent program for supporting C++?

>Or better yet, does anybody have a working C++ beautifier?

>Thanks,

>Nevin

I've found a copy of "indent" that someone had modified to handle C++ code,
but I can't remember now where I found it!  My archie server is broken at
the moment, but I think I was searching on "c++".

If I can remember where I found it I'll post another message here, as there
seems to be a lot of requests for such a thing...

Mike.




Author: longyear@citrus.SAC.CA.US ( Alfred Longyear )
Date: Sun, 16 May 1993 15:06:54 GMT
Raw View
In reguards to the C++ beautifier:

Dr. Dobbs Journal published a revision to the INDENT program for C++.
It's source is available on several places, including compuserve.

You might try there. (DDJ programs usually end up on SIMTEL20 as well.)

If you still can't find it, then let me know and I'll email you the
source (or submit it to SIMTEL20, probably, to prevent an email storm.)

Reguards.


--

# Where no man has gone before.               longyear@citrus.SAC.CA.US
#   *default* .sig file                  csusac.ecs.csus.edu!citrus!longyear
# The undiscovered land.                             /\../\