[clang-format] Rename CSharpNullConditionalSq and add missing test
authorJonathan Coe <jbcoe@google.com>
Mon, 2 Mar 2020 15:46:33 +0000 (15:46 +0000)
committerJonathan Coe <jbcoe@google.com>
Mon, 2 Mar 2020 15:46:33 +0000 (15:46 +0000)
commit9c4afce7024aa1fe4efe2631240d1d766b4ea257
treed959e0d5f0f75d1fa2b7424e036440cecb9c9fb9
parent675326466b532bb329f9ded090d5337bc48b148a
[clang-format] Rename CSharpNullConditionalSq and add missing test

Summary:
Rename CSharpNullConditionalSq to CSharpNullConditionalLSquare.

Add test for spaces inside [] with C# Null conditionals.

Address comments missed from https://reviews.llvm.org/D75368.

Reviewers: krasimir

Reviewed By: krasimir

Subscribers: cfe-commits

Tags: #clang-format, #clang

Differential Revision: https://reviews.llvm.org/D75456
clang/lib/Format/FormatToken.h
clang/lib/Format/FormatTokenLexer.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestCSharp.cpp