clang-format: Improve && detection as binary operator.
authorDaniel Jasper <djasper@google.com>
Tue, 28 Oct 2014 18:28:22 +0000 (18:28 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 28 Oct 2014 18:28:22 +0000 (18:28 +0000)
commitf0c809a19bf4efadcb1efaf76325e14d745020f9
treeafb2d8fd7582920e6bfc797e766a50bb17145aa9
parent9ad94aa280619feaed083fd35f9a50c7e076a7b0
clang-format: Improve && detection as binary operator.

Before:
  template <class T,
            class = typename ::std::enable_if<
                ::std::is_array<T>{}&& ::std::is_array<T>{}>::type>
  void F();

After:
  template <class T,
            class = typename ::std::enable_if<
                ::std::is_array<T>{} && ::std::is_array<T>{}>::type>
  void F();

llvm-svn: 220813
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp