Skip to content
Snippets Groups Projects
  • Daniel Jasper's avatar
    04822968
    clang-format: Several improvements around formatting braced lists. · 04822968
    Daniel Jasper authored
    In particular:
    * If the difference between the longest and shortest element, we copped
      out of column format completely. Now, we instead allow to arrange
      these in a single column, essentially enforcing a one-per-line format.
    * Allow column layout even if there are braced lists. Especially, if
      there are many short lists, this can be beneficial. The bad case,
      where there is a long nested init list is usually caught as we now
      limit the length difference of the longest and shortest element.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236851 91177308-0d34-0410-b5e6-96231b3b80d8
    04822968
    History
    clang-format: Several improvements around formatting braced lists.
    Daniel Jasper authored
    In particular:
    * If the difference between the longest and shortest element, we copped
      out of column format completely. Now, we instead allow to arrange
      these in a single column, essentially enforcing a one-per-line format.
    * Allow column layout even if there are braced lists. Especially, if
      there are many short lists, this can be beneficial. The bad case,
      where there is a long nested init list is usually caught as we now
      limit the length difference of the longest and shortest element.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236851 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.