[PATCH] D78642: [clang-format] Handle C# property accessors when parsing lines
Jonathan B Coe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 22 08:06:21 PDT 2020
jbcoe created this revision.
jbcoe added reviewers: krasimir, MyDeveloperDay.
jbcoe added a project: clang-format.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Improve C# `{ get; set; } = default;` formatting by handling it in the UnwrappedLineParser rather than trying to merge lines later.
Remove old logic to merge lines.
Update tests as formatting output has changed (as intended).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78642
Files:
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/UnwrappedLineParser.h
clang/unittests/Format/FormatTestCSharp.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78642.259293.patch
Type: text/x-patch
Size: 6748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200422/6ca086ee/attachment.bin>
More information about the cfe-commits
mailing list