Doxygen: add default location for filters and output folder.
2017-06-28 Martin Liska <mliska@suse.cz> * gcc.doxy: Add default location for filters and output folder. * filter_gcc_for_doxygen_new: Rename to filter_gcc_for_doxygen. * filter_params.pl: Remove. From-SVN: r249725
This commit is contained in:
parent
9a265443ff
commit
f2bcf09e91
5 changed files with 11 additions and 35 deletions
|
@ -1,3 +1,9 @@
|
|||
2017-06-28 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* gcc.doxy: Add default location for filters and output folder.
|
||||
* filter_gcc_for_doxygen_new: Rename to filter_gcc_for_doxygen.
|
||||
* filter_params.pl: Remove.
|
||||
|
||||
2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||||
|
||||
* dg-cmp-results.sh: Restore filtering on target variant.
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This filters GCC source before Doxygen can get confused by it;
|
||||
# this script is listed in the doxyfile. The output is not very
|
||||
# this script is listed in the doxyfile. The output is not very
|
||||
# pretty, but at least we get output that Doxygen can understand.
|
||||
#
|
||||
# $1 is a source file of some kind. The source we wish doxygen to
|
||||
# $1 is a source file of some kind. The source we wish doxygen to
|
||||
# process is put on stdout.
|
||||
|
||||
dir=`dirname $0`
|
||||
perl $dir/filter_params.pl < $1 | perl $dir/filter_knr2ansi.pl
|
||||
python $dir/filter_params.py $1
|
||||
exit 0
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This filters GCC source before Doxygen can get confused by it;
|
||||
# this script is listed in the doxyfile. The output is not very
|
||||
# pretty, but at least we get output that Doxygen can understand.
|
||||
#
|
||||
# $1 is a source file of some kind. The source we wish doxygen to
|
||||
# process is put on stdout.
|
||||
|
||||
dir=`dirname $0`
|
||||
python $dir/filter_params.py $1
|
||||
exit 0
|
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Filters out some of the #defines used throughout the GCC sources:
|
||||
# - GTY(()) marks declarations for gengtype.c
|
||||
# - PARAMS(()) is used for K&R compatibility. See ansidecl.h.
|
||||
|
||||
while (<>) {
|
||||
s/^\/\* /\/\*\* \@verbatim /;
|
||||
s/\*\// \@endverbatim \*\//;
|
||||
s/GTY[ \t]*\(\(.*\)\)//g;
|
||||
s/[ \t]ATTRIBUTE_UNUSED//g;
|
||||
s/PARAMS[ \t]*\(\((.*?)\)\)/\($1\)/sg;
|
||||
print;
|
||||
}
|
|
@ -11,16 +11,12 @@
|
|||
# Values that contain spaces should be placed between quotes (" ")
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# NOTE: YOU MUST EDIT THE FOLLOWING HARDWIRED PATHS BEFORE USING THIS FILE.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
|
||||
# base path where the generated documentation will be put.
|
||||
# If a relative path is entered, it will be relative to the location
|
||||
# where doxygen was started. If left blank the current directory will be used.
|
||||
|
||||
OUTPUT_DIRECTORY = @OUTPUT_DIRECTORY@
|
||||
OUTPUT_DIRECTORY = gcc-doxygen
|
||||
|
||||
# The INPUT_FILTER tag can be used to specify a program that doxygen should
|
||||
# invoke to filter for each input file. Doxygen will invoke the filter program
|
||||
|
@ -30,7 +26,7 @@ OUTPUT_DIRECTORY = @OUTPUT_DIRECTORY@
|
|||
# to standard output. If FILTER_PATTERNS is specified, this tag will be
|
||||
# ignored.
|
||||
|
||||
INPUT_FILTER = @INPUT_FILTER@
|
||||
INPUT_FILTER = contrib/filter_gcc_for_doxygen
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue