]> granicus.if.org Git - clang/commit
clang-format: The "<" of a template argument is not a binary operator.
authorDaniel Jasper <djasper@google.com>
Sat, 23 Nov 2013 14:45:49 +0000 (14:45 +0000)
committerDaniel Jasper <djasper@google.com>
Sat, 23 Nov 2013 14:45:49 +0000 (14:45 +0000)
commitd02be1a6a5673cb545b9cfc58b350ea2a2405817
tree774d57db4e97faa76515525eb55fcae78ebe6e77
parenta454961c662a3febd6a3690a2af5a498f03dbb6d
clang-format: The "<" of a template argument is not a binary operator.

With Style.BreakBeforeBinaryOperators, clang-format breaks incorrectly.
This fixes llvm.org/PR17994.

Before:
  return boost::fusion::at_c<0>(iiii).second == boost::fusion::at_c
                                                <1>(iiii).second;

After:
  return boost::fusion::at_c<0>(iiii).second ==
         boost::fusion::at_c<1>(iiii).second;

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