[clang-format] Recognize C# nullable types
authorJonathan Coe <jbcoe@google.com>
Fri, 28 Feb 2020 10:26:40 +0000 (10:26 +0000)
committerJonathan Coe <jbcoe@google.com>
Fri, 28 Feb 2020 11:09:55 +0000 (11:09 +0000)
commit5f52a93b698bab3f7083a6d97d3e3a2e303866e0
tree52e76d88b906880d513d6fe8b68c115703097dac
parent2f95d5f10344967ff36b84d442c7b40d501f77f5
[clang-format] Recognize C# nullable types

Summary:
Do not confuse C# nullable types with conditional expressions.

Do not put a space before the `?` in `[access-modifier] Type? variableName;`

Reviewers: krasimir, MyDeveloperDay

Reviewed By: krasimir, MyDeveloperDay

Subscribers: cfe-commits, MyDeveloperDay

Tags: #clang-format, #clang

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