The issue is that for array subscript like:
arr[[Foo() bar]];
ClangFormat will recognize it as C++11 attribute syntax and put a space between 'arr' and first '[', like:
arr [[Foo() bar]];
Now it is fixed. Tested with:
ninja FormatTests
Differential D54288
Fix ClangFormat issue of recognizing ObjC subscript as C++ attributes when message target is a result of a C-style method. Wizard on Nov 8 2018, 6:41 PM. Authored by
Details The issue is that for array subscript like: arr[[Foo() bar]]; ClangFormat will recognize it as C++11 attribute syntax and put a space between 'arr' and first '[', like: arr [[Foo() bar]]; Now it is fixed. Tested with: ninja FormatTests
Diff Detail
|