Do not confuse C# nullable types with conditional expressions.
Do not put a space before the ? in [access-modifier] Type? variableName;
Paths
| Differential D75261
[clang-format] Recognize C# nullable types ClosedPublic Authored by jbcoe on Feb 27 2020, 8:07 AM.
Details Summary Do not confuse C# nullable types with conditional expressions. Do not put a space before the ? in [access-modifier] Type? variableName;
Diff Detail
Unit TestsFailed Event Timelinekrasimir added inline comments. This revision is now accepted and ready to land.Feb 27 2020, 11:32 AM Closed by commit rG5f52a93b698b: [clang-format] Recognize C# nullable types (authored by Jonathan Coe <jbcoe@google.com>). · Explain WhyFeb 28 2020, 3:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 246951 clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestCSharp.cpp
|
This will be formatted as
without the Nullable Type.