llvm-project/clang/lib/Format
Daniel Jasper 100ffc632a clang-format: Be more conservative about specially indenting blocks in C++.
This is a bit of a step back of what we did in r222531, as there are
some corner cases in C++, where this kind of formatting is really bad.

Example:
Before:
  virtual aaaaaaaaaaaaaaaa(std::function<bool()> IsKindWeWant = [&]() {
    return true;
  }, aaaaa aaaaaaaaa);

After:
  virtual aaaaaaaaaaaaaaaa(std::function<bool()> IsKindWeWant =
                               [&]() { return true; },
                           aaaaa aaaaaaaaa);

The block formatting logic in JavaScript will probably go some other changes,
too, and we'll potentially be able to make the rules more consistent again. For
now, this seems to be the best approach for C++.

llvm-svn: 245694
2015-08-21 11:44:57 +00:00
..
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
BreakableToken.h Fix assertion in BreakableBlockComment (http://llvm.org/PR21916). 2015-01-12 13:11:12 +00:00
CMakeLists.txt clang-format: Factor out UnwrappedLineFormatter into a separate file. 2014-12-10 19:00:42 +00:00
ContinuationIndenter.cpp clang-format: Be more conservative about specially indenting blocks in C++. 2015-08-21 11:44:57 +00:00
ContinuationIndenter.h [clang-format] Use in-class initializers to simplify constructor. 2015-06-12 14:39:08 +00:00
Encoding.h clang-format: Fix crasher when a UTF8 character is found in an escape 2015-07-20 23:28:07 +00:00
Format.cpp Add WebKit brace style configuration option. 2015-08-10 13:43:19 +00:00
FormatToken.cpp clang-format: Fix column layout with a comment in the last line. 2015-07-15 16:26:47 +00:00
FormatToken.h clang-format: Don't remove space between #elif and parentheses. 2015-08-14 12:44:06 +00:00
Makefile
TokenAnnotator.cpp clang-format: Be more conservative about specially indenting blocks in C++. 2015-08-21 11:44:57 +00:00
TokenAnnotator.h clang-format: NFC. Add a function to test whether an annotated line 2015-06-17 09:43:56 +00:00
UnwrappedLineFormatter.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineFormatter.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineParser.cpp clang-format: Fix incorrect lambda-detection. 2015-08-13 13:37:08 +00:00
UnwrappedLineParser.h clang-format: NFC. Cleanup after r237895. 2015-05-31 08:51:54 +00:00
WhitespaceManager.cpp [Format] Skip creating temporary std::strings when filling another string. 2015-05-28 19:55:49 +00:00
WhitespaceManager.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00