clang-format: Add option to suppress operator alignment.
authorDaniel Jasper <djasper@google.com>
Tue, 2 Dec 2014 13:24:51 +0000 (13:24 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 2 Dec 2014 13:24:51 +0000 (13:24 +0000)
commit3219e43c9467e47be9b1a9e32b3ed42a50f6b280
tree4cf246ced5831e1112122ac5239082a25f81f1fe
parent6e9bfa344ca7971f1f9b71efdd6452ad877e5483
clang-format: Add option to suppress operator alignment.

With alignment:
  int aaaaaa = aa
               + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
                     * cccccccccccccccccccccccccccccccc;

Without alignment:
  int aaaaaa = aa
      + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
          * cccccccccccccccccccccccccccccccc;

This fixes llvm.org/PR21666.

llvm-svn: 223117
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTest.cpp
clang/unittests/Format/FormatTestJava.cpp