diff options
author | Daniel Jasper <djasper@google.com> | 2013-02-07 21:08:36 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-02-07 21:08:36 +0000 |
commit | daf1a15d734d154f07d5a0328d3ef59cd9a68f13 (patch) | |
tree | f61f82303ff29b379ce8b79281904b65a7066685 /lib/Format | |
parent | 882090e76a48337ce55fdc913a7e8a19ff35f4fc (diff) |
clang-format: Don't put useless space in f( ::g()).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format')
-rw-r--r-- | lib/Format/TokenAnnotator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Format/TokenAnnotator.cpp b/lib/Format/TokenAnnotator.cpp index ad3baae00d..8a384540d8 100644 --- a/lib/Format/TokenAnnotator.cpp +++ b/lib/Format/TokenAnnotator.cpp @@ -830,7 +830,8 @@ bool TokenAnnotator::spaceRequiredBetween(const AnnotatedLine &Line, if (Left.is(tok::coloncolon)) return false; if (Right.is(tok::coloncolon)) - return Left.isNot(tok::identifier) && Left.isNot(tok::greater); + return Left.isNot(tok::identifier) && Left.isNot(tok::greater) && + Left.isNot(tok::l_paren); if (Left.is(tok::less) || Right.is(tok::greater) || Right.is(tok::less)) return false; if (Right.is(tok::amp) || Right.is(tok::star)) |