]> granicus.if.org Git - clang/commit
Let clang-format break after a function's return type.
authorDaniel Jasper <djasper@google.com>
Mon, 28 Jan 2013 15:16:31 +0000 (15:16 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 28 Jan 2013 15:16:31 +0000 (15:16 +0000)
commit83f25ba0499f18b91501fb6538c49ebc7827bea0
tree0d7b274b1b0d4afc41930c01fc83334a27f3d177
parent02b771e3110f7799f93d5d17dc6fefc5713387c3
Let clang-format break after a function's return type.

Before:
TypeSpecDecl *TypeSpecDecl::Create(ASTContext &C, DeclContext *DC,
                                   SourceLocation L, IdentifierInfo *II,
                                   Type *T) {}

After:
TypeSpecDecl *
TypeSpecDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L,
                     IdentifierInfo *II, Type *T) {}

This fixes llvm.org/PR14717.

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