mirror of
https://github.com/nasa/trick.git
synced 2025-04-16 07:26:48 +00:00
Correct class declaration regex
The pattern looking for inheritance should be optional #332
This commit is contained in:
parent
b9ede7432a
commit
c1af5ba0e2
@ -517,7 +517,7 @@ sub handle_sim_class ($$$$) {
|
||||
$s =~ s/ZZZYYYXXX(\d+)ZZZYYYXXX//esg ;
|
||||
|
||||
# grab the class name and the name of the class we are inheriting from
|
||||
($full_template_args, $class_name, $inherit_class) = $s =~ /(?:\s*template\s*<\s*([^>]+?)\s*>)?\s*class\s+(\w+)\s*(?::\s*public\s+(.+?)\s*)$/ ;
|
||||
($full_template_args, $class_name, $inherit_class) = $s =~ /(?:\s*template\s*<\s*([^>]+?)\s*>)?\s*class\s+(\w+)\s*(?::\s*public\s+(.+?)\s*)?$/ ;
|
||||
|
||||
$template_args = $full_template_args ;
|
||||
$template_args =~ s/class|typename//g ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user