Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b37e3c7ce24cce0b163a75013a548b7dfeb1022a
      
https://github.com/WebKit/WebKit/commit/b37e3c7ce24cce0b163a75013a548b7dfeb1022a
  Author: Daniel Liu <[email protected]>
  Date:   2025-06-24 (Tue, 24 Jun 2025)

  Changed paths:
    M Tools/Scripts/webkitpy/style/checkers/cpp.py

  Log Message:
  -----------
  Ignore control flow keywords in check-webkit-style function style check
https://bugs.webkit.org/show_bug.cgi?id=294872
rdar://154136983

Reviewed by Yusuke Suzuki.

Sometimes, we get some nonsensical style errors such as:

> The parameter name ">" adds no information, so it should be removed.

on code such as

```
if (a.b()->c() >= d)
```

due to the style checker believing this is a function declaration. We
should just ignore any "functions" named `if`, `for`, or `while` when
style checking, which should avoid some of these silly "style errors"

* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(detect_functions):

Canonical link: https://commits.webkit.org/296581@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to