diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-05-06 14:11:27 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-05-06 14:11:27 +0000 |
commit | fb59486ef3624d09896b09a978b28eb63cfd3c46 (patch) | |
tree | 75b17093af3f255d1e06d9348103957b1441574c /include/clang/Format/Format.h | |
parent | 7ff96ed7336b4f0efef05c10fd5ce5143918d4e1 (diff) |
Added Mozilla style, cleaned get*Style methods.
Summary: Patch based on a patch by Ehsan Akhgari.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D750
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Format/Format.h')
-rw-r--r-- | include/clang/Format/Format.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 28aa6bd2ce..5304dc7ba2 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -57,9 +57,6 @@ struct FormatStyle { /// instead of \c A<A<int>> for LS_Cpp03. LanguageStandard Standard; - /// \brief If \c true, analyze the formatted file for C++03 compatibility. - bool DeriveBackwardsCompatibility; - /// \brief Indent case labels one level from the switch statement. /// /// When false, use the same indentation level as for the switch statement. @@ -109,6 +106,10 @@ FormatStyle getGoogleStyle(); /// http://www.chromium.org/developers/coding-style. FormatStyle getChromiumStyle(); +/// \brief Returns a format style complying with Mozilla's style guide: +/// https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style. +FormatStyle getMozillaStyle(); + /// \brief Reformats the given \p Ranges in the token stream coming out of /// \c Lex. /// |