summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-29 10:00:16 +0000
committerDaniel Jasper <djasper@google.com>2013-01-29 10:00:16 +0000
commit6a217e1815a8f88506d1d4a2bf3a941014b84193 (patch)
treec5c002e0b1bda653a9e626f44bc544d0910826f4 /clang/lib/Format/Format.cpp
parent73b12d7132c39f1008ba86f6f23e33f0bb8af130 (diff)
downloadbcm5719-llvm-6a217e1815a8f88506d1d4a2bf3a941014b84193.tar.gz
bcm5719-llvm-6a217e1815a8f88506d1d4a2bf3a941014b84193.zip
Reverting changes from r173785 (removing empty lines before "}").
This needs some more thinking, e.g. for namespaces, chains of if-else if, ... llvm-svn: 173787
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 58e6648ca30..8eebda0740b 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1990,8 +1990,6 @@ private:
Style.MaxEmptyLinesToKeep + 1);
if (Newlines == 0 && !Tok.IsFirst)
Newlines = 1;
- if (Tok.Tok.is(tok::r_brace) && Newlines > 1)
- Newlines = 1;
unsigned Indent = Level * 2;
bool IsAccessModifier = false;
OpenPOWER on IntegriCloud