hanchenye-llvm-project/clang/lib/Format
Daniel Jasper 9b246e09ce clang-format: Keep empty lines and format 1-line nested blocks.
Let clang-format consistently keep up to one empty line (configured via
FormatStyle::MaxEmptyLinesToKeep) in nested blocks, e.g. lambdas. Also,
actually format single statements in nested blocks.

Before:
  DEBUG({ int     i; });
  DEBUG({
    int i;
    // an empty line here would just be removed.
    int j;
  });

After:
  DEBUG({ int i; });
  DEBUG({
    int i;

    int j;
  });

llvm-svn: 190278
2013-09-08 14:07:57 +00:00
..
BreakableToken.cpp Handle zero-width and double-width characters in string literals and comments. 2013-09-05 14:08:34 +00:00
BreakableToken.h Handle zero-width and double-width characters in string literals and comments. 2013-09-05 14:08:34 +00:00
CMakeLists.txt clang-format: Add column layout formatting for braced lists 2013-08-22 15:00:41 +00:00
ContinuationIndenter.cpp clang-format: Fix regression introduced by r190038. 2013-09-06 21:46:41 +00:00
ContinuationIndenter.h clang-format: Fix comment formatting bugs in nested blocks. 2013-09-06 07:54:20 +00:00
Encoding.h Handle zero-width and double-width characters in string literals and comments. 2013-09-05 14:08:34 +00:00
Format.cpp clang-format: Keep empty lines and format 1-line nested blocks. 2013-09-08 14:07:57 +00:00
FormatToken.cpp clang-format: Fix bug in column layout. 2013-08-27 08:43:47 +00:00
FormatToken.h clang-format: Fix regression introduced by r189337. 2013-09-06 08:08:14 +00:00
Makefile
TokenAnnotator.cpp clang-format: Fix regression introduced by r189353. 2013-09-06 08:54:24 +00:00
TokenAnnotator.h clang-format: Fix comment formatting bugs in nested blocks. 2013-09-06 07:54:20 +00:00
UnwrappedLineParser.cpp clang-format: Format typed enums with nested names. 2013-09-06 21:32:35 +00:00
UnwrappedLineParser.h Unbreak build with libc++, whose std::list<T> requires T to be complete. 2013-09-05 18:28:53 +00:00
WhitespaceManager.cpp Handle zero-width and double-width characters in string literals and comments. 2013-09-05 14:08:34 +00:00
WhitespaceManager.h Reformat clang-format's source files after r185822 and others. 2013-07-08 14:34:09 +00:00