diff options
author | Francois Ferrand <thetypz@gmail.com> | 2017-06-30 20:25:55 +0000 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2017-06-30 20:25:55 +0000 |
commit | ad72256daa2d8e20334bd29e2e7364c07840f250 (patch) | |
tree | bc01f401cea04368fb4a103bf3d5bae7b001600a /llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | |
parent | 1fec6cbeba6042286ec2060e12f9a4a2e8ccec44 (diff) | |
download | llvm-ad72256daa2d8e20334bd29e2e7364c07840f250.zip llvm-ad72256daa2d8e20334bd29e2e7364c07840f250.tar.gz llvm-ad72256daa2d8e20334bd29e2e7364c07840f250.tar.bz2 |
clang-format: add options to merge empty record body
Summary:
This patch introduces a few extra BraceWrapping options, similar to
`SplitEmptyFunction`, to allow merging empty 'record' bodies (e.g.
class, struct, union and namespace):
* SplitEmptyClass
* SplitEmptyStruct
* SplitEmptyUnion
* SplitEmptyNamespace
The `SplitEmptyFunction` option name has also been simplified/
shortened (from `SplitEmptyFunctionBody`).
These options are helpful when the correspond AfterXXX option is
enabled, to allow merging the empty record:
class Foo
{};
In addition, this fixes an unexpected merging of short records, when
the AfterXXXX options are used, which caused to be formatted like
this:
class Foo
{ void Foo(); };
This is now properly formatted as:
class Foo
{
void Foo();
};
Reviewers: djasper, krasimir
Reviewed By: djasper
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D34395
llvm-svn: 306874
Diffstat (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp')
0 files changed, 0 insertions, 0 deletions