summaryrefslogtreecommitdiffstats
path: root/bin/trace
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-04-07 00:27:22 (GMT)
committerGitHub <noreply@github.com>2022-04-07 00:27:22 (GMT)
commitbc84280186e65ece691d9c5bc238bed25e127ac0 (patch)
treefa07b3a236188575e450094a72d6ad0cbf0c579e /bin/trace
parent9d426d3162ed0091016becb922e1af8d865afb0d (diff)
downloadhdf5-bc84280186e65ece691d9c5bc238bed25e127ac0.zip
hdf5-bc84280186e65ece691d9c5bc238bed25e127ac0.tar.gz
hdf5-bc84280186e65ece691d9c5bc238bed25e127ac0.tar.bz2
Normalization of 1.12 branch with develop (#1598)
Diffstat (limited to 'bin/trace')
-rwxr-xr-xbin/trace8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/trace b/bin/trace
index 2b519e4..1159f63 100755
--- a/bin/trace
+++ b/bin/trace
@@ -248,7 +248,9 @@ sub argstring ($$$) {
# Normalize the data type by removing redundant white space,
# certain type qualifiers, and indirection.
- $atype =~ s/^\bconst\b//;
+ $atype =~ s/^\bconst\b//; # Leading const
+ $atype =~ s/\s*const\s*//; # const after type, possibly in the middle of '*'s
+ $atype =~ s/^\bstatic\b//;
$atype =~ s/\bH5_ATTR_UNUSED\b//g;
$atype =~ s/\bH5_ATTR_DEPRECATED_USED\b//g;
$atype =~ s/\bH5_ATTR_NDEBUG_UNUSED\b//g;
@@ -276,7 +278,7 @@ sub argstring ($$$) {
} else {
$tstr = $TypeString{$atype};
}
- return ("*" x $ptr) . ($array?"[$array]":"") . $tstr;
+ return ("*" x $ptr) . ($array ? "[$array]" : "") . $tstr;
}
##############################################################################
@@ -305,7 +307,7 @@ sub rewrite_func ($$$$$) {
my %names;
for $arg (@args) {
- if($arg=~/\w*\.{3}\w*/){
+ if($arg=~/\w*\.{3}\w*/){ # Skip "..." for varargs parameter
next;
}
unless ($arg=~/^(([a-z_A-Z]\w*\s+)+\**)