# HG changeset patch # User Vincent Tondellier # Date 1455488136 -3600 # Node ID 8e0a9f88fb470a516147f6c88c431cdad7cf74fa # Parent 4dae01f2beeeaad5adceb6d151a558a883d74dfd Cleanup, don't capture group in regex diff -r 4dae01f2beee -r 8e0a9f88fb47 lib/CrashTest/Plugin/CrashSignatureExtractor/C_Cpp.pm --- a/lib/CrashTest/Plugin/CrashSignatureExtractor/C_Cpp.pm Sun Feb 14 22:42:29 2016 +0100 +++ b/lib/CrashTest/Plugin/CrashSignatureExtractor/C_Cpp.pm Sun Feb 14 23:15:36 2016 +0100 @@ -38,7 +38,6 @@ my $short = _extract_function_name($frame->function); $short =~ s/^$_// foreach (@{$self->config->{RemoveNamespace}}); push @short_frames, $short; - # . "@" . $frame->function_offset; } return \@short_frames; @@ -61,7 +60,7 @@ # the complex prefix is here to match normal function names (the last '[^<\(]*' part) # but also the complex case of unbalanced <> like in: # std::basic_ostream& operator<< (std::basic_ostream&, T const&) - my ($str, $next, $prefix) = extract_bracketed($text, '<(', qr/([^<\(]*operator[<>]{1,2})?[^<\(]*/); + my ($str, $next, $prefix) = extract_bracketed($text, '<(', qr/(?:[^<\(]*operator[<>]{1,2})?[^<\(]*/); if($str) { $short_signature .= $prefix; $text = $next;