clang-format: Enable formatting of nested blocks.
authorDaniel Jasper <djasper@google.com>
Thu, 5 Sep 2013 09:29:45 +0000 (09:29 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 5 Sep 2013 09:29:45 +0000 (09:29 +0000)
commit9fe0e8dacdb36520bd93ed720afd4ce045931a44
tree09b4fbe966995901e7e0b5efec445ce081402ed3
parent5bd1fc5993190288ac0640a23302e492b4dc87e7
clang-format: Enable formatting of nested blocks.

Among other things, this enables (better) formatting lambdas and
constructs like:
  MACRO({
          long_statement();
          long_statement_2();
        },
        {
          long_statement();
          long_statement_2();
        },
        { short_statement(); }, "");

This fixes llvm.org/PR15381.

llvm-svn: 190038
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/ContinuationIndenter.h
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/TokenAnnotator.h
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/UnwrappedLineParser.h
clang/unittests/Format/FormatTest.cpp