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/ChangeLog b/Tools/ChangeLog
index 479ce16..3e99404 100644
--- a/Tools/ChangeLog
+++ b/Tools/ChangeLog
@@ -1,3 +1,14 @@
+2014-06-26 Dan Bernstein <mitz@apple.com>
+
+ 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.
+
2014-06-26 Brady Eidson <beidson@apple.com>
MiniBrowser should support a preference to override the default URL
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);