[all-commits] [llvm/llvm-project] 0c28a0: [clang-format] Correct indentation for `[key] = va...

Jonathan B Coe via All-commits all-commits at lists.llvm.org
Tue Mar 10 02:47:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c28a0938c55ad34587fe88ac54ff2c85e79fa70
      https://github.com/llvm/llvm-project/commit/0c28a0938c55ad34587fe88ac54ff2c85e79fa70
  Author: Jonathan Coe <jbcoe at google.com>
  Date:   2020-03-10 (Tue, 10 Mar 2020)

  Changed paths:
    M clang/lib/Format/ContinuationIndenter.cpp
    M clang/unittests/Format/FormatTestCSharp.cpp

  Log Message:
  -----------
  [clang-format] Correct indentation for `[key] = value,` entries in C# object initialisers

Restores content of commit cb3f20d27c9e91cb9f997f0401f388e62c4ba993
reverted in commit 5a101f377315c0c0c58e8df842fe5eb5d8c7611d
with a corrected commit message.

Summary: Do not use continuation indent for '[' in blocks in C# code.

Reviewers: krasimir

Reviewed By: krasimir

Subscribers: cfe-commits

Tags: #clang-format, #clang

Differential Revision: https://reviews.llvm.org/D75747




More information about the All-commits mailing list