Merge 'argumentName' and ':' into a single token in foo(argumentName: bar).
Add C# named argument as a token type.
Paths
| Differential D74894
[clang-format] Merge name and colon into a single token for C# named arguments ClosedPublic Authored by jbcoe on Feb 20 2020, 4:52 AM.
Details Summary Merge 'argumentName' and ':' into a single token in foo(argumentName: bar). Add C# named argument as a token type.
Diff Detail Event Timeline
krasimir marked an inline comment as done. Comment ActionsThank you!
This revision is now accepted and ready to land.Feb 20 2020, 10:21 AM Closed by commit rGa11ff39ba2ad: [clang-format] Merge name and colon into a single token for C# named arguments (authored by Jonathan Coe <jbcoe@google.com>). · Explain WhyFeb 20 2020, 11:25 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 245665 clang/lib/Format/FormatToken.h
clang/lib/Format/FormatTokenLexer.h
clang/lib/Format/FormatTokenLexer.cpp
clang/unittests/Format/FormatTestCSharp.cpp
|
Please add a comment with an example how is this merge expected to work (like token followed by : is merged etc.)