llvm-project/clang/unittests/Format
Daniel Jasper 98f8ae34da clang-format: Slightly change indentation rules in for loops.
There was already a TODO to double-check whether the extra indenation
makes sense. A slightly different case reveals that it is actively harmful:

  for (int i = 0; i < aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ||
                      bbbbbbbbbbbbbbbbbbbb < ccccccccccccccc;
       ++i) {
  }

Here (and it is probably not a totally infrequent case, it just works out that
"i < " is four spaces and so the four space extra indentation makes the
operator precedence confusing. So, this will now instead be formatted
as:

  for (int i = 0; i < aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ||
                  bbbbbbbbbbbbbbbbbbbb < ccccccccccccccc;
       ++i) {
  }

llvm-svn: 231461
2015-03-06 10:57:12 +00:00
..
CMakeLists.txt Refactor libTooling to reduce required dependencies. 2014-10-29 18:55:09 +00:00
FormatTest.cpp clang-format: Slightly change indentation rules in for loops. 2015-03-06 10:57:12 +00:00
FormatTestJS.cpp clang-format: [js] Support template strings. 2015-02-20 13:47:38 +00:00
FormatTestJava.cpp clang-format: [Java] Support try blocks with resources. 2015-01-14 10:48:41 +00:00
FormatTestProto.cpp clang-format: [Proto] Change formatting text-formatted options. 2014-10-27 13:25:59 +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