]> granicus.if.org Git - clang/commit
clang-format: Fix child-formatting in macros.
authorDaniel Jasper <djasper@google.com>
Tue, 26 May 2015 07:03:42 +0000 (07:03 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 26 May 2015 07:03:42 +0000 (07:03 +0000)
commita6074110bb8b1a7ae6fa718cabe08ea11f5caf24
tree5d923ce0bbe07ce5482fc909c5572d27067afb79
parentc8cf9fc42bd812b2b369223458151dd08ec1041c
clang-format: Fix child-formatting in macros.

This fixes a case where the column limit was incorrectly calculated
leading to a macro like this:

  #define A                                       \
    [] {                                          \
      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(        \
          xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx); \
    }

exceeding the column limit.

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