[clang-format] Do not treat C# attribute targets as labels
authorJonathan Coe <jbcoe@google.com>
Wed, 5 Feb 2020 16:51:31 +0000 (16:51 +0000)
committerJonathan Coe <jbcoe@google.com>
Wed, 5 Feb 2020 17:30:24 +0000 (17:30 +0000)
commitca1fd460f1f5bc4c200f557b63d69a93e3722175
tree68a5bf2c57fc6546a37dd91995895f5fe33ac530
parent9f507bfd8d4761c619f21d8165b7e6e6e5bd09bd
[clang-format] Do not treat C# attribute targets as labels

Summary: Merge '[', 'target' , ':' into a single token for C# attributes to
prevent the target from being seen as a label.

Reviewers: MyDeveloperDay, krasimir

Reviewed By: krasimir

Tags: #clang-format

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