[clang-format] Improved identification of C# nullables
authorJonathan Coe <jbcoe@google.com>
Wed, 11 Mar 2020 12:57:29 +0000 (12:57 +0000)
committerJonathan Coe <jbcoe@google.com>
Wed, 11 Mar 2020 12:58:52 +0000 (12:58 +0000)
commit1fb9c29833ab88c4a3d6fda9911117839754d998
tree782d8aa8b062da90c8bd9f528b0afbe2938655c9
parent5c917bd9a7de8fc45401da00cd27661b429887e9
[clang-format] Improved identification of C# nullables

Summary:
Allow `?` inside C# generics.

Do not mistake casts like `(Type?)` as conditional operators.

Reviewers: krasimir

Subscribers: cfe-commits, MyDeveloperDay

Tags: #clang-format, #clang

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