[clang-format] Recognize C# named argument colons as a token type
authorJonathan Coe <jbcoe@google.com>
Thu, 27 Feb 2020 13:46:43 +0000 (13:46 +0000)
committerJonathan Coe <jbcoe@google.com>
Thu, 27 Feb 2020 13:47:29 +0000 (13:47 +0000)
commit7dfe0cc7f5765dc729685a0aa468cdf54a265a11
tree98fdf51f38cf47fb13fc70046d744b5939e71389
parent7ea9a6e0220da36ff2fd1fbc29c2755be23e5166
[clang-format] Recognize C# named argument colons as a token type

Summary:
No longer merge 'name' and ':' into a single token.

Ensure that line breaks cannot be placed before or after a named-argument colon.

Ensure that no space is inserted before a named-argument colon.

Reviewers: krasimir

Reviewed By: krasimir

Subscribers: cfe-commits, MyDeveloperDay

Tags: #clang-format, #clang

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