]> granicus.if.org Git - clang/commit
Only align after assignments on the top level.
authorDaniel Jasper <djasper@google.com>
Wed, 9 Jan 2013 10:40:23 +0000 (10:40 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 9 Jan 2013 10:40:23 +0000 (10:40 +0000)
commit3fc0bb779e751de71166c20a365cd5c28c3de8ed
treef09df1a015223a83b19cc52b9139fc240fd21798
parentceb99ab9d721848c0851c59f3fdd9c1ca85c58be
Only align after assignments on the top level.

This fixes llvm.org/PR14870 and we no longer mess up:
template <typename T1, typename T2 = char, typename T3 = char,
          typename T4 = char>
void f();

It removes the nice aligment for assignments inside other expressions,
but I am not sure those are actually practically relevant. If so, we can
fix those later.

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