Add comments to the list of tokens that can follow the ']' at the end of a C# attribute specifier to prevent comments after attribute specifiers from being formatted as continuations.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D73977
[clang-format] Allow a comment to follow a C# attribute specifier ClosedPublic Authored by jbcoe on Feb 4 2020, 9:58 AM.
Details Summary Add comments to the list of tokens that can follow the ']' at the end of a C# attribute specifier to prevent comments after attribute specifiers from being formatted as continuations.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Feb 4 2020, 10:12 AM Closed by commit rG50d8977c459d: [clang-format] Allow a comment to follow a C# attribute specifier (authored by Jonathan Coe <jbcoe@google.com>). · Explain WhyFeb 4 2020, 11:08 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 242365 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestCSharp.cpp
|