prepare-ChangeLog mangles Objective-C selectors for methods with parameter types that contain colons
https://bugs.webkit.org/show_bug.cgi?id=134383

Reviewed by Tim Horton.

* Scripts/prepare-ChangeLog:
(method_decl_to_selector): Strip out the return type and parameter types before splitting at
colons.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Tools/Scripts/prepare-ChangeLog b/Tools/Scripts/prepare-ChangeLog
index 2c59366..4244b63 100755
--- a/Tools/Scripts/prepare-ChangeLog
+++ b/Tools/Scripts/prepare-ChangeLog
@@ -658,6 +658,9 @@
 
     s/,\s*...//;
 
+    # Strip out the return type and parameter types. The extra )? takes care of most block parameter types.
+    s/\([^\)]*\)\)?//g;
+
     if (/:/) {
         my @components = split /:/;
         pop @components if (scalar @components > 1);