]> granicus.if.org Git - clang/commit
Fix bug when formatting overloaded operators.
authorDaniel Jasper <djasper@google.com>
Fri, 10 May 2013 07:59:58 +0000 (07:59 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 10 May 2013 07:59:58 +0000 (07:59 +0000)
commit6ea933c7e8f6988d5647af4a0eafd393a4c3685a
treec3ed0ad844e5661ff94f24e94b6f1d777a8b41d2
parent25d8c856681120581315edcdb48257c99af6b45c
Fix bug when formatting overloaded operators.

Before, the actual operator of an overloaded operator declaration was
handled as a binary operator an thus, clang-format could not find valid
formattings for many examples, e.g.:

template <typename AAAAAAA, typename BBBBBBB>
AAAAAAA operator/(const AAAAAAA &a, BBBBBBB &b);

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