]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Doxygen: add default location for filters and output folder.
authorMartin Liska <mliska@suse.cz>
Wed, 28 Jun 2017 07:52:46 +0000 (09:52 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 28 Jun 2017 07:52:46 +0000 (07:52 +0000)
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

contrib/ChangeLog
contrib/filter_gcc_for_doxygen
contrib/filter_gcc_for_doxygen_new [deleted file]
contrib/filter_params.pl [deleted file]
contrib/gcc.doxy

index 51adaaa178f225cfc1069ab46d273e3a772894c6..98db2908aad3e401a88c319c7e51fab28cd5fe82 100644 (file)
@@ -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.
index 3787eebbf0e7435c021671aa2af8e1792499bfdd..d1109a50c88fd7304cde56df17854318bb3ae824 100755 (executable)
@@ -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
diff --git a/contrib/filter_gcc_for_doxygen_new b/contrib/filter_gcc_for_doxygen_new
deleted file mode 100644 (file)
index d1109a5..0000000
+++ /dev/null
@@ -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
diff --git a/contrib/filter_params.pl b/contrib/filter_params.pl
deleted file mode 100755 (executable)
index 22dae6c..0000000
+++ /dev/null
@@ -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;
-}
index 7a284e754aa5e98beb85058613c5e2a855919f58..a8eeb03c9a0f40837b28ddd6fb5fe0e2828b43ed 100644 (file)
 # 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
 
 #-----------------------------------------------------------------------------