old-cross-binutils/gdb/doc/filter-params.pl

12 lines
326 B
Perl
Raw Normal View History

2014-02-10 23:01:14 +00:00
#!/usr/bin/perl
# This Perl script tweaks GDB sources to be more useful for Doxygen.
while (<>) {
# Allow "/* * " as an equivalent to "/** ", better for Emacs compat.
s/\/\* \* /\/** /sg;
# Manually expand macro seen in structs and such.
s/ENUM_BITFIELD[ \t]*\((.*?)\)/__extension__ enum $1/sg;
print;
}