[all-commits] [llvm/llvm-project] 2f9fc8: [clang-format] Handle C# property accessors when p...
Jonathan B Coe via All-commits
all-commits at lists.llvm.org
Thu Apr 23 05:34:13 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2f9fc8d9718fb19c04e169f7ba7ae26ea6a05085
https://github.com/llvm/llvm-project/commit/2f9fc8d9718fb19c04e169f7ba7ae26ea6a05085
Author: Jonathan Coe <jbcoe at google.com>
Date: 2020-04-23 (Thu, 23 Apr 2020)
Changed paths:
M clang/lib/Format/UnwrappedLineFormatter.cpp
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/lib/Format/UnwrappedLineParser.h
M clang/unittests/Format/FormatTestCSharp.cpp
Log Message:
-----------
[clang-format] Handle C# property accessors when parsing lines
Summary:
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).
Reviewers: krasimir, MyDeveloperDay
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D78642
More information about the All-commits
mailing list