If there are no braces and WEBSITE_DATA_STORE_ADDITIONS is empty, this if-statement includes the following line, causing test failures.
<rdar://problem/61485209>
Created attachment 395887 [details] Patch
Comment on attachment 395887 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=395887&action=review r=me to fix tests, even though this is technically a style violation. > Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm:430 > WEBSITE_DATA_STORE_ADDITIONS Eventually, the `WEBSITE_DATA_STORE_ADDITIONS` macro should probably have a do { ... } while(0) loop around its contents if it's multi-line, and maybe defined to `(void)0` if it is not set (in this file. Then the curly braces can be removed.
Comment on attachment 395887 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=395887&action=review >> Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm:430 >> WEBSITE_DATA_STORE_ADDITIONS > > Eventually, the `WEBSITE_DATA_STORE_ADDITIONS` macro should probably have a do { ... } while(0) loop around its contents if it's multi-line, and maybe defined to `(void)0` if it is not set (in this file. Then the curly braces can be removed. Another way to fix this is: #ifndef WEBSITE_DATA_STORE_ADDITIONS #define WEBSITE_DATA_STORE_ADDITIONS (void)0 #endif At the top of the file. Then you can remove the curly brances and make the style bot happy. r=me either way you decide to fix.
Committed r259768: <https://trac.webkit.org/changeset/259768> All reviewed patches have been landed. Closing bug and clearing flags on attachment 395887 [details].