From 31b7ad8e20db834038916a6e690444ed5cfc04f0 Mon Sep 17 00:00:00 2001 From: Derek Bankieris Date: Tue, 30 Jul 2024 10:45:26 -0500 Subject: [PATCH] Correct convert_swig regex for qualified templates Closes #1751 --- libexec/trick/convert_swig | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libexec/trick/convert_swig b/libexec/trick/convert_swig index e3a08c38..5639d7f4 100755 --- a/libexec/trick/convert_swig +++ b/libexec/trick/convert_swig @@ -57,7 +57,6 @@ my %sim ; my %out_of_date ; my ($version, $thread, $year) ; my %processed_templates ; -my $global_template_typedefs ; my $typedef_def = qr/typedef\s+ # the word typedef (?:[_A-Za-z][\s\w]*\s*) # resolved type @@ -336,7 +335,6 @@ sub process_file() { } print OUT "\n$new_contents" ; print OUT "$contents\n" ; - print OUT $global_template_typedefs ; # Add _swig_setattr_nondynamic_instance_variable function for raising AttributeError for improper non-class attribute assingment in input processor. # _swig_setattr_nondynamic_instance_variable function is added for each class in process_class subroutine. @@ -692,10 +690,6 @@ sub process_class($$$$$) { my ($template_type_no_sp) = $template_full_type ; $template_type_no_sp =~ s/\s//g ; - # If the type is qualified, assume it's fully qualified and put the - # %template directive in the global namespace. - # See https://github.com/nasa/trick/issues/768 - my $qualified = $template_type_no_sp =~ /^\w+(::)\w+