]> granicus.if.org Git - clang/commit
clang-format: Improve formatting of operators forced to new lines.
authorDaniel Jasper <djasper@google.com>
Fri, 8 Nov 2013 19:56:28 +0000 (19:56 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 8 Nov 2013 19:56:28 +0000 (19:56 +0000)
commit8b156e2a040d7a652e821878b68822041f65d71a
treec97841fc619e04e3efb5ee78496f30eb65e0d5ca
parentf9495911c46a5f90d8cf14774c11ff521d505c7e
clang-format: Improve formatting of operators forced to new lines.

Before:
  unsigned ContentSize =
      sizeof(int16_t) // DWARF ARange version number
      +
      sizeof(int32_t) // Offset of CU in the .debug_info section
      +
      sizeof(int8_t) // Pointer Size (in bytes)
      +
      sizeof(int8_t); // Segment Size (in bytes)

After:
  unsigned ContentSize =
      sizeof(int16_t)   // DWARF ARange version number
      + sizeof(int32_t) // Offset of CU in the .debug_info section
      + sizeof(int8_t)  // Pointer Size (in bytes)
      + sizeof(int8_t); // Segment Size (in bytes)

This fixes llvm.org/PR17687.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194276 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTest.cpp