llvm-project/clang/unittests/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
..
CMakeLists.txt clang-format: NFC. Move testing of selective formatting to a separate file. 2015-06-15 15:25:11 +00:00
FormatTest.cpp clang-format: Be more conservative about specially indenting blocks in C++. 2015-08-21 11:44:57 +00:00
FormatTestJS.cpp clang-format: [JS] Assign proper penalties when breaking a type annotation 2015-07-10 13:39:26 +00:00
FormatTestJava.cpp clang-format: [Java/JS] Properly support instanceof and its precedence. 2015-07-03 10:12:53 +00:00
FormatTestProto.cpp clang-format: [Proto] Handle enum bodies differently. 2015-07-16 14:25:43 +00:00
FormatTestSelective.cpp clang-format: NFC. Move testing of selective formatting to a separate file. 2015-06-15 15:25:11 +00:00
FormatTestUtils.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
Makefile Refactor libTooling to reduce required dependencies. 2014-10-29 18:55:09 +00:00