Align sequential generic type constraints on a type.
Indent sequential generic type constraints on different types as continuations.
Do not allow '(' and '<' within a generic type constraint to open new scopes.
Paths
| Differential D76597
[clang-format] Reflow long C# generic type constraints correctly ClosedPublic Authored by jbcoe on Mar 23 2020, 4:11 AM.
Details Summary Align sequential generic type constraints on a type. Indent sequential generic type constraints on different types as continuations. Do not allow '(' and '<' within a generic type constraint to open new scopes.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 23 2020, 5:52 AM Closed by commit rG78e2a3c67846: [clang-format] Reflow long C# generic type constraints correctly (authored by Jonathan Coe <jbcoe@google.com>). · Explain WhyMar 23 2020, 7:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 252020 clang/lib/Format/ContinuationIndenter.h
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestCSharp.cpp
|