summaryrefslogtreecommitdiff
path: root/lib/Format/UnwrappedLineParser.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-11-22 07:26:53 +0000
committerDaniel Jasper <djasper@google.com>2013-11-22 07:26:53 +0000
commit844e62bd1fff9215bb37d8a1bf24867837861ca4 (patch)
tree86a7c15ed832a3821279c55bd9ff549d0f81a6ad /lib/Format/UnwrappedLineParser.cpp
parent68bf2a99a5b920bceee9549dc8c35bb0e6ef0014 (diff)
downloadclang-844e62bd1fff9215bb37d8a1bf24867837861ca4.tar.gz
clang-844e62bd1fff9215bb37d8a1bf24867837861ca4.tar.bz2
clang-844e62bd1fff9215bb37d8a1bf24867837861ca4.tar.xz
clang-format: Recognize braced lists with trailing function call.
Before: int count = set<int> { f(), g(), h() } .size(); After: int count = set<int>{f(), g(), h()}.size(); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/UnwrappedLineParser.cpp')
-rw-r--r--lib/Format/UnwrappedLineParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp
index d074308101..016c4db07b 100644
--- a/lib/Format/UnwrappedLineParser.cpp
+++ b/lib/Format/UnwrappedLineParser.cpp
@@ -322,7 +322,7 @@ void UnwrappedLineParser::calculateBraceTypes() {
// (for example while parsing lambdas).
//
// We exclude + and - as they can be ObjC visibility modifiers.
- if (NextTok->isOneOf(tok::comma, tok::semi, tok::r_paren,
+ if (NextTok->isOneOf(tok::comma, tok::semi, tok::r_paren, tok::period,
tok::r_square, tok::l_brace, tok::colon) ||
(NextTok->isBinaryOperator() &&
!NextTok->isOneOf(tok::plus, tok::minus))) {