]> granicus.if.org Git - clang/commit
clang-format: Fix AlwaysBreakAfterDefinitionReturnType in Stroutrup style
authorDaniel Jasper <djasper@google.com>
Thu, 14 Aug 2014 11:36:03 +0000 (11:36 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 14 Aug 2014 11:36:03 +0000 (11:36 +0000)
commit078a00c52d53dc2f64cd9b2a172dc309d4e42aae
tree4c0d5cc438d555eefc335c1f2a05d4dd51c6c0ef
parent4230ae8f1a3a290b59b8dfdbc99919102e43b4f0
clang-format: Fix AlwaysBreakAfterDefinitionReturnType in Stroutrup style

Before:
  template <class T>
  T *f(T &c)  // Problem here: no line break before f
  {
    return NULL;
  }

After:
  template <class T>
  T *
  f(T &c)
  {
    return NULL;
  }

Patch by Marek Kurdej, thank you!

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