<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang-format creates extra space in objective-c array literal if it contains "class""
   href="https://bugs.llvm.org/show_bug.cgi?id=38069">38069</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-format creates extra space in objective-c array literal if it contains "class"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Formatter
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>c.weymann@avm.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [clang-format/ObjC] ObjC selector with C++ keyword causes incorrect formatting in subsequent code"
   href="show_bug.cgi?id=37454">Bug 37454</a> 

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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>