[clang-format] Handle commas in [] in C#
authorJonathan Coe <jbcoe@google.com>
Thu, 27 Feb 2020 11:39:57 +0000 (11:39 +0000)
committerJonathan Coe <jbcoe@google.com>
Thu, 27 Feb 2020 11:49:30 +0000 (11:49 +0000)
commit548e540d2ced9f5a596e0433f544c560a842a6a7
tree5938a1371b3ea6de1eb70cfa146e66ac70f0cb13
parent2e24219d3cbfcb8c824c58872f97de0a2e94a7c8
[clang-format] Handle commas in [] in C#

Summary:
Respect setting `SpacesInSquareBrackets` for commas in square brackets in C# code.

Reviewers: krasimir, MyDeveloperDay

Reviewed By: krasimir

Subscribers: cfe-commits

Tags: #clang-format, #clang

Differential Revision: https://reviews.llvm.org/D75182
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestCSharp.cpp