From: Wolfgang Bangerth Date: Tue, 8 Aug 2000 15:10:12 +0000 (+0000) Subject: Exclude forward declarations from scanning. X-Git-Tag: v8.0.0~20192 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f57d737bc920abe03202264ff26beb82eaecdb2;p=dealii.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])+>)+)>)?)(.*)/;