From: Pedro Alves <palves@redhat.com>
To: Stan Shebs <stanshebs@earthlink.net>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Use Doxygen for internals documentation
Date: Fri, 01 Nov 2013 11:18:00 -0000 [thread overview]
Message-ID: <52738E10.7050007@redhat.com> (raw)
In-Reply-To: <525877F6.40001@earthlink.net>
On 10/11/2013 11:13 PM, Stan Shebs wrote:
>
> 1) Its parser get befuddled by some of our macrology.
...
> 3) The only way I could find to get Emacs to preserve our current
> formatting rules is to have the opening "/**" on a line by itself.
GCC has these problems solved by running a simple filter on
the sources before feeding them to doxygen. I think we
could/should do the same.
http://gcc.gnu.org/viewcvs/gcc/trunk/contrib/filter_params.pl?view=markup
1 #!/usr/bin/perl
2
3 # Filters out some of the #defines used throughout the GCC sources:
4 # - GTY(()) marks declarations for gengtype.c
5 # - PARAMS(()) is used for K&R compatibility. See ansidecl.h.
6
7 while (<>) {
8 s/^\/\* /\/\*\* \@verbatim /;
9 s/\*\// \@endverbatim \*\//;
10 s/GTY[ \t]*\(\(.*\)\)//g;
11 s/[ \t]ATTRIBUTE_UNUSED//g;
12 s/PARAMS[ \t]*\(\((.*?)\)\)/\($1\)/sg;
13 print;
14 }
David Malcolm just recently posted a gcc patch that rewrites
that in Python (and makes it smarter):
http://gcc.gnu.org/ml/gcc-patches/2013-10/msg02728.html
--
Pedro Alves
prev parent reply other threads:[~2013-11-01 11:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 22:13 Stan Shebs
2013-10-14 13:20 ` Yao Qi
2013-10-15 23:39 ` Stan Shebs
2013-10-16 17:28 ` Tom Tromey
2013-10-16 19:52 ` Stan Shebs
2013-10-17 20:23 ` Tom Tromey
2013-11-01 11:18 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52738E10.7050007@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=stanshebs@earthlink.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox