diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-12 07:00:16 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-12 07:00:16 +0000 |
commit | 774b97312ddffe64435a1428f904211ee46cf289 (patch) | |
tree | b00e65db29e2ea506925537550de0740c9c58a84 /lib/Format/Format.cpp | |
parent | 838dc597e25614c653a062a124b06a04d6b7f5eb (diff) |
Formatter: Remove a redundant CurrentLineType check.
The containing if checks for this already. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 0c486e0be3..89fbf61da0 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -1176,8 +1176,8 @@ private: if (Right.is(tok::identifier) && !Right.Children.empty() && Right.Children[0].is(tok::colon) && Left.is(tok::identifier)) return true; - if (CurrentLineType == LT_ObjCMethodDecl && Right.is(tok::identifier) && - Left.is(tok::l_paren) && Left.Parent->is(tok::colon)) + if (Right.is(tok::identifier) && Left.is(tok::l_paren) && + Left.Parent->is(tok::colon)) // Don't break this identifier as ':' or identifier // before it will break. return false; |