From a4162caa357f73c1145c203b6cfe68b99a0293d0 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 22 Feb 1999 13:11:07 +0000 Subject: [PATCH] Add support for member templates. git-svn-id: https://svn.dealii.org/trunk@872 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/auto/scripts/kdoc/kdoc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/deal.II/doc/auto/scripts/kdoc/kdoc b/deal.II/doc/auto/scripts/kdoc/kdoc index 5988c07b40..7307f6dd22 100644 --- a/deal.II/doc/auto/scripts/kdoc/kdoc +++ b/deal.II/doc/auto/scripts/kdoc/kdoc @@ -266,6 +266,13 @@ sub processClass # parse out // comments, except where in a string or s#//.*$##g unless m#"[^"]+".*//# || m#^\s*///#; + + # if we find a "template " on a single line, + # concatenate it with the next line + if ( /^\s*(template\s*<(([-\w,_\s]|<([-\w,+\s])+>)+)>\s*)\n/ ) { + $_ = $1 . " " . ; + } + $line = $_; if ( /^\s*\}\s*;\s*(\/\/.*)?$/ ) @@ -566,9 +573,11 @@ sub processClass #### Member Function - elsif ( /^\s*((template\s*<[^>]*>\s*\n?\s*)?[^\(]*)\s+([^\s\(]+)\s*\((.*)(\/\/.*)?$/ ) + elsif ( /^\s*([^\(]*)\s+([^\s\(]+)\s*\((.*)(\/\/.*)?$/ ) { - processMethod( $1, $3, $4 ); + # note that the return type may contain + # template ! + processMethod( $1, $2, $3 ); } } -- 2.39.5