diff options
Diffstat (limited to 'include/clang/Format/Format.h')
-rw-r--r-- | include/clang/Format/Format.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index aac552b602..19c4c02f82 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -61,6 +61,9 @@ struct FormatStyle { /// initializer on its own line. bool ConstructorInitializerAllOnOneLineOrOnePerLine; + /// \brief If true, "if (a) return;" can be put on a single line. + bool AllowShortIfStatementsOnASingleLine; + /// \brief Add a space in front of an Objective-C protocol list, i.e. use /// Foo <Protocol> instead of Foo<Protocol>. bool ObjCSpaceBeforeProtocolList; @@ -78,6 +81,10 @@ FormatStyle getLLVMStyle(); /// http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml. FormatStyle getGoogleStyle(); +/// \brief Returns a format style complying with Chromium's style guide: +/// http://www.chromium.org/developers/coding-style. +FormatStyle getChromiumStyle(); + /// \brief Reformats the given \p Ranges in the token stream coming out of /// \c Lex. /// |