diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-11 11:37:55 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-11 11:37:55 +0000 |
commit | 7e9bf8c249a5a9717447a00a8669596002a5569a (patch) | |
tree | cae2f297a278f45f787a1c5c60bb6f8735e80dbf /include/clang/Format/Format.h | |
parent | 67d472c19310c06efd5cb87c60b8489abf507233 (diff) |
Improved formatting of constructor initializers
Added option to put each constructor initializer on its own line
if not all initializers fit on a single line. Enabling this for
Google style now as the style guide (arguable) suggests it. Not
sure whether we also want it for LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Format/Format.h')
-rw-r--r-- | include/clang/Format/Format.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 0bafd6c773..e3a066e9d8 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -56,6 +56,10 @@ struct FormatStyle { /// \brief The number of spaces to before trailing line comments. unsigned SpacesBeforeTrailingComments; + /// \brief If the constructor initializers don't fit on a line, put each + /// initializer on its own line. + bool ConstructorInitializerAllOnOneLineOrOnePerLine; + /// \brief Add a space in front of an Objective-C protocol list, i.e. use /// Foo <Protocol> instead of Foo<Protocol>. bool ObjCSpaceBeforeProtocolList; |