]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Exclude forward declarations from scanning.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 8 Aug 2000 15:10:12 +0000 (15:10 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 8 Aug 2000 15:10:12 +0000 (15:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@3237 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/forward_declarations.pl

index 34f4f3f9e6d8ee9b6f639ab68727b0b18c40649c..fcfc19224c0befd0a44125e0d504642435e93a46 100644 (file)
@@ -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])+>)+)>)?)(.*)/;
 

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.