as is is a keyword in C# ensure there is always a space before the [ regardless of SpaceBeforeSquareBrackets setting
Fixes: #61965
Paths
| Differential D148472
[clang-format] CSharp don't allow there not to be a space between `is` and `[` ClosedPublic Authored by MyDeveloperDay on Apr 16 2023, 9:25 AM.
Details Summary as is is a keyword in C# ensure there is always a space before the [ regardless of SpaceBeforeSquareBrackets setting Fixes: #61965
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 16 2023, 9:25 AM This revision is now accepted and ready to land.Apr 16 2023, 12:02 PM This revision was landed with ongoing or failed builds.Apr 17 2023, 11:40 AM Closed by commit rG63395cb0b69d: [clang-format] CSharp don't allow there not to be a space between `is` and `[` (authored by MyDeveloperDay). · Explain Why This revision was automatically updated to reflect the committed changes. MyDeveloperDay marked an inline comment as done.
Revision Contents
Diff 514338 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestCSharp.cpp
|
Should we end the return statements with a semicolon?