llvm-project/clang/lib/Format
Daniel Jasper 1bc1b502ec Don't break after a "(" following a binary operator.
Additionally, allow breaking after c-style casts, but with a high
penalty.

Before:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa *foo = (
    aaaaaaaaaaaaaaaaa *)bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
After:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa *foo = (aaaaaaaaaaaaaaaaa *)
    bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;

This fixes llvm.org/PR16049.

llvm-svn: 185685
2013-07-05 07:58:34 +00:00
..
BreakableToken.cpp Use static for helper functions instead of an anonymous namespace per coding standards. 2013-07-01 03:38:29 +00:00
BreakableToken.h Don't remove backslashes from block comments. 2013-06-14 11:46:10 +00:00
CMakeLists.txt Unified token breaking logic for strings and block comments. 2013-04-15 14:28:00 +00:00
Encoding.h UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
Format.cpp Fixed typo: NoneComment -> NonComment, no other changes. 2013-07-04 14:47:51 +00:00
FormatToken.h Fixed typo: NoneComment -> NonComment, no other changes. 2013-07-04 14:47:51 +00:00
Makefile
TokenAnnotator.cpp Don't break after a "(" following a binary operator. 2013-07-05 07:58:34 +00:00
TokenAnnotator.h UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
UnwrappedLineParser.cpp Fix incorrect token counting introduced by r185319. 2013-07-01 16:43:38 +00:00
UnwrappedLineParser.h Moved FormatToken to a separate header. 2013-06-03 16:45:03 +00:00
WhitespaceManager.cpp Don't align "} // namespace" comments. 2013-07-01 11:22:57 +00:00
WhitespaceManager.h Insert a space at the start of a line comment in case it starts with an alphanumeric character. 2013-06-11 16:01:49 +00:00