]> granicus.if.org Git - clang/commit
clang-format: Fix indentation of struct definitions with array init.
authorDaniel Jasper <djasper@google.com>
Mon, 20 Oct 2014 11:12:51 +0000 (11:12 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 20 Oct 2014 11:12:51 +0000 (11:12 +0000)
commit6933b7d5702d8267572e2c1d065a91d462736dc3
tree277725dd89f0dd5b600afc2b03ab50d4a52f4658
parentc60864f6286f2021b6c96d9fbb24b9f6394c5c3a
clang-format: Fix indentation of struct definitions with array init.

Before:
  struct {
    int x;
    int y;
  } points[] = {
        {1, 2}, {2, 3},
  };

After:
  struct {
    int x;
    int y;
  } points[] = {
      {1, 2}, {2, 3},
  };

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220195 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp