Bug 223616 - clang-format removes space between empty braced initializers
Summary: clang-format removes space between empty braced initializers
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-22 18:02 PDT by Cameron McCormack (:heycam)
Modified: 2024-05-28 20:18 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron McCormack (:heycam) 2021-03-22 18:02:53 PDT
Following up from https://bugs.webkit.org/show_bug.cgi?id=223229.  In that bug, two of three issues identified were fixed with .clang-format updates.  But formatting empty braced initializers as `{ }` rather than `{}` was not.
Comment 1 Radar WebKit Bug Importer 2021-03-29 18:03:12 PDT
<rdar://problem/75982853>
Comment 2 Kohei Asano 2024-05-28 20:18:53 PDT
I guess this problem still exists for current trunk clang-format. https://github.com/llvm/llvm-project/issues/93635 But this problem could be solved like https://github.com/llvm/llvm-project/commit/f9022ddba4dd26dea5d04dbcd3c256d2d42b3bad technically, currently in consulting.