diff options
Diffstat (limited to 'include/clang/Format/Format.h')
-rw-r--r-- | include/clang/Format/Format.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index f9bd1308b6..75b809baab 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -39,14 +39,26 @@ struct FormatStyle { unsigned MaxEmptyLinesToKeep; /// \brief Set whether & and * bind to the type as opposed to the variable. - bool PointerAndReferenceBindToType; + bool PointerBindsToType; + + /// \brief If \c true, analyze the formatted file for the most common binding. + bool DerivePointerBinding; /// \brief The extra indent or outdent of access modifiers (e.g.: public:). int AccessModifierOffset; - /// \brief Split two consecutive closing '>' by a space, i.e. use - /// A<A<int> > instead of A<A<int>>. - bool SplitTemplateClosingGreater; + enum LanguageStandard { + LS_Cpp03, + LS_Cpp11, + LS_Auto + }; + + /// \brief Format compatible with this standard, e.g. use \c A<A<int> > + /// 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. /// |