From b11e73182e4562d287ffc5be23e8dce7e49424a5 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 8 Aug 2000 15:10:12 +0000 Subject: [PATCH] Exclude forward declarations from scanning. git-svn-id: https://svn.dealii.org/trunk@3237 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/common/scripts/forward_declarations.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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])+>)+)>)?)(.*)/; -- 2.39.5