https://bugs.llvm.org/show_bug.cgi?id=38069

            Bug ID: 38069
           Summary: clang-format creates extra space in objective-c array
                    literal if it contains "class"
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

when formatting

NSArray* simpleClassArray = @[[NSNumber class]];

clang-format adds an extra space

NSArray* simpleClassArray = @ [[NSNumber class]];

the following code is formatted as expected:
NSArray *simpleOneElementNSNumberArray = @[[NSNumber numberWithInteger:1]];

config:
---
Language:        ObjC
BasedOnStyle:  LLVM
...

potentially related to Bug 37454 

occurs with trunk version:
 build locally or installed via home-brew (clang-format version 7.0.0
(tags/google/stable/2018-04-24))

does not occur with version 6.0

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to