llvm-project/clang/lib/Format
Daniel Jasper 473c62c485 Slightly modify the formatting rules for braced lists.
Basically, the new rule is: The opening "{" always has to be on the
same line as the first element if the braced list is nested
(e.g. in another braced list or in a function).

The solution that clang-format produces almost always adheres to this
rule anyway and this makes clang-format significantly faster for larger
lists. Added a test cases for the only exception I could find
(which doesn't seem to be very important at first sight).

llvm-svn: 182082
2013-05-17 09:35:01 +00:00
..
BreakableToken.cpp Unified token breaking logic: support for line comments. 2013-04-17 17:34:05 +00:00
BreakableToken.h Unified token breaking logic: support for line comments. 2013-04-17 17:34:05 +00:00
CMakeLists.txt Unified token breaking logic for strings and block comments. 2013-04-15 14:28:00 +00:00
Format.cpp Slightly modify the formatting rules for braced lists. 2013-05-17 09:35:01 +00:00
Makefile
TokenAnnotator.cpp Improve recognition of template definitions. 2013-05-15 13:46:48 +00:00
TokenAnnotator.h Fix uninitialized value bug found by valgrind. 2013-05-14 10:44:17 +00:00
UnwrappedLineParser.cpp Remove diagnostics from clang-format. 2013-05-15 08:14:19 +00:00
UnwrappedLineParser.h Remove diagnostics from clang-format. 2013-05-15 08:14:19 +00:00
WhitespaceManager.cpp Fix style according to post-commit review comments. 2013-05-13 12:53:04 +00:00
WhitespaceManager.h Implements UseTab for clang-format. 2013-05-13 09:22:11 +00:00