]> granicus.if.org Git - clang/commit
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)
commitf6babddc8724f616a504cf7a9b2c93f8d91e3b2b
treef4b8f45c73e99dd4fffa10e437ebec0e321071c6
parent8a112fe4f65b88e53c85ed91c27f2974189d73ca
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223117 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/ContinuationIndenter.cpp
lib/Format/Format.cpp
unittests/Format/FormatTest.cpp
unittests/Format/FormatTestJava.cpp