]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add support for member templates.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Feb 1999 13:11:07 +0000 (13:11 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Feb 1999 13:11:07 +0000 (13:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@872 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/auto/scripts/kdoc/kdoc

index 5988c07b405dd11ac5ec2eda7df2a8f720fc1f20..7307f6dd22af429f84283ef4be15134efff867a1 100644 (file)
@@ -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 <whatever>" on a single line,
+        # concatenate it with the next line
+        if ( /^\s*(template\s*<(([-\w,_\s]|<([-\w,+\s])+>)+)>\s*)\n/ ) {
+           $_ = $1 . " " . <IN>;
+       }
+
        $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 <whatever>!
+               processMethod( $1, $2, $3 );
        }
 
     }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.