Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Style checker should check spacing inside braces with elements in them
https://bugs.webkit.org/show_bug.cgi?id=231199 In order to automate this and prevent reviewers from having to comment on it, ensure that spaces are required by webkit-check-style inside of braces with elements in them (e.g., initializer lists.) In order to avoid false positives, ignore brace spacing if the braces are surrounded by double-quotes on the same line, assuming that means it's likely the braces are inside a string. Patch by Philip Chimento <pchimento@igalia.com> on 2021-10-06 Reviewed by Jonathan Bedard. * Scripts/webkitpy/style/checkers/cpp.py: (check_spacing): * Scripts/webkitpy/style/checkers/cpp_unittest.py: (CppStyleTest): (NoNonVirtualDestructorsTest): (WebKitStyleTest.test_indentation): Canonical link: https://commits.webkit.org/242577@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
9c803db
commit 25821a95c581cac0222513294da89e06b9cd25ab
Showing
3 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters