HomePhabricator

[clang-format/ObjC] Do not insert space after opening brace of ObjC dict literal

Description

[clang-format/ObjC] Do not insert space after opening brace of ObjC dict literal

Summary:
D44816 attempted to fix a few cases where clang-format incorrectly
inserted a space before the closing brace of an Objective-C dictionary
literal.

This revealed there were still a few cases where we inserted a space
after the opening brace of an Objective-C dictionary literal.

This fixes the formatting to be consistent and adds more tests.

Test Plan: New tests added. Confirmed tests failed before

diff and passed after diff.
Ran tests with:
% make -j12 FormatTests && ./tools/clang/unittests/Format/FormatTests

Reviewers: djasper, jolesiak, krasimir

Reviewed By: djasper

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D45168

Details

Committed
benhamiltonApr 3 2018, 7:07 AM
Reviewer
djasper
Differential Revision
D45168: [clang-format/ObjC] Do not insert space after opening brace of ObjC dict literal
Branches
Unknown
Tags
Unknown