[llvm-bugs] [Bug 38069] New: clang-format creates extra space in objective-c array literal if it contains "class"
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 5 07:19:40 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: c.weymann at avm.de
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180705/7bf09307/attachment.html>
More information about the llvm-bugs
mailing list