Using "auto <function()> -> returnType" breaks prepare-ChangeLog
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jul 2017 22:04:02 +0000 (22:04 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jul 2017 22:04:02 +0000 (22:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=174930

Unreviewed test fix.

We need to check parentheses before printing 'const' or 'volatile' in the ChangeLog.

* Scripts/prepare-ChangeLog:
(get_function_line_ranges_for_cpp):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220017 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/prepare-ChangeLog

index 9d1baf0..fccbc19 100644 (file)
@@ -1,3 +1,15 @@
+2017-07-28  Jonathan Bedard  <jbedard@apple.com>
+
+        Using "auto <function()> -> returnType" breaks prepare-ChangeLog
+        https://bugs.webkit.org/show_bug.cgi?id=174930
+
+        Unreviewed test fix.
+
+        We need to check parentheses before printing 'const' or 'volatile' in the ChangeLog. 
+
+        * Scripts/prepare-ChangeLog:
+        (get_function_line_ranges_for_cpp):
+
 2017-07-28  JF Bastien  <jfbastien@apple.com>
 
         Using "auto <function()> -> returnType" breaks prepare-ChangeLog
index 888e9b7..b43ad92 100755 (executable)
@@ -1007,12 +1007,12 @@ sub get_function_line_ranges_for_cpp($$)
                 next;
             }
 
-            if ($1 eq "const") {
+            if ($1 eq "const" and !$in_parentheses) {
                 $potential_name .= " const";
                 next;
             }
 
-            if ($1 eq "volatile") {
+            if ($1 eq "volatile" and !$in_parentheses) {
                 $potential_name .= " volatile";
                 next;
             }