diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-08-26 14:15:46 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-08-26 14:15:46 (GMT) |
commit | c822eb3d9ce727dd69954661edcabcad479c1481 (patch) | |
tree | 9acee8d8d8b91289eb8173fd93a8f16891fc2a92 /doc/translator.pl | |
parent | 2f7902073680b977b74f3faeada95119ec767eb3 (diff) | |
download | Doxygen-c822eb3d9ce727dd69954661edcabcad479c1481.zip Doxygen-c822eb3d9ce727dd69954661edcabcad479c1481.tar.gz Doxygen-c822eb3d9ce727dd69954661edcabcad479c1481.tar.bz2 |
Release-1.2.10
Diffstat (limited to 'doc/translator.pl')
-rw-r--r-- | doc/translator.pl | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/doc/translator.pl b/doc/translator.pl index a19a6d8..207f191 100644 --- a/doc/translator.pl +++ b/doc/translator.pl @@ -50,10 +50,10 @@ # can be updated so that the generated language.doc does not contain # the link to the translator_report.txt. # -# Todo: -# ----- -# - Something changed. The environment variables like VERSION, -# DOXYGEN_DOCDIR are not set now when make is run. +# 2001/08/20 +# - StripArgIdentifiers() enhanced to be more robust in producing +# equal prototypes from the base class and from the derived +# classes (if they should be considered equal). # ################################################################ @@ -174,6 +174,8 @@ sub StripArgIdentifiers ##{{{ foreach my $arg (@a) { + # Only the type of the identifier is important... + # $arg =~ s{^(\s* # there can be spaces behind comma, (const\s+)? # possibly const at the beginning [A-Za-z0-9_:]+ # type identifier can be qualified @@ -183,6 +185,20 @@ sub StripArgIdentifiers ##{{{ } {$1}x; # remember only the important things + # People may differ in opinion whether a space should + # or should not be written between a type identifier and + # the '*' or '&' (when the argument is a pointer or a reference). + # + $arg =~ s{\s*([*&])}{ $1}; + + # Whitespaces are not only spaces. Moreover, the difference + # may be in number of them in a sequence or in the type + # of a whitespace. This is the reason to replace each sequence + # of whitespace by a single, real space. + # + $arg =~ s{\s+}{ }g; + + # Remember the stripped form of the arguments push(@stripped, $arg); } @@ -683,6 +699,11 @@ print STDERR "\n\n"; # my @expected = GetPureVirtualFrom("$srcdir/translator.h"); + # The details for translators will be collected into the output + # string. + # + my $output = ''; + # Remove the argument identifiers from the method prototypes # to get only the required form of the prototype. Fill the # hash with them. #{{{ @@ -700,11 +721,6 @@ print STDERR "\n\n"; # my %cb = (); - # The details for translators will be collected into the output - # string. - # - my $output = ''; - # Loop through all translator files. Extract the implemented # virtual methods and compare it with the requirements. Prepare # the output. |