From 43b6548ce0d89c81dcd6f9cab93963daebaf7dba Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Wed, 23 Jan 2013 12:27:43 +0000 Subject: Removing the penalty for breaking after "=". Having seen more cases, this actually was not a good thing to do in the first place. We can still improve on what we do now, but breaking after the "=" is good in many cases. Before: aaaaaaaaaaaaa = aa->aaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaa)); After: aaaaaaaaaaaaa = aa->aaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaa)); llvm-svn: 173257 --- clang/lib/Format/Format.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib') diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 2d9bd2cc061..c75b8ef834b 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -702,11 +702,6 @@ private: return prec::Assignment; prec::Level Level = getPrecedence(Left); - // Breaking after an assignment leads to a bad result as the two sides of - // the assignment are visually very close together. - if (Level == prec::Assignment) - return 50; - if (Level != prec::Unknown) return Level; -- cgit v1.2.3