From: wolf Date: Tue, 8 Aug 2000 15:10:12 +0000 (+0000) Subject: Exclude forward declarations from scanning. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b11e73182e4562d287ffc5be23e8dce7e49424a5;p=dealii-svn.git Exclude forward declarations from scanning. git-svn-id: https://svn.dealii.org/trunk@3237 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/scripts/forward_declarations.pl b/deal.II/common/scripts/forward_declarations.pl index 34f4f3f9e6..fcfc19224c 100644 --- a/deal.II/common/scripts/forward_declarations.pl +++ b/deal.II/common/scripts/forward_declarations.pl @@ -78,8 +78,14 @@ sub parse_class_declarations { $rest = $7; # test whether it is a forward declaration or something else. - # $rest contains the name of the class and what comes after that - # + # if it is a forward declaration, then skip it, as it must + # be declared somewhere else properly + # (note that $rest contains the name of the class and what + # comes after that) + if ( $rest =~ /;\s*$/ ) { + next; + } + # first extract the name of the class $rest =~ /([\w_]+(\s*<(([-\w,_\s]|<([-\w,\s])+>)+)>)?)(.*)/;