diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-07 11:09:06 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-07 11:09:06 +0000 |
commit | 7ad4effaa96905ef9dbc3815760b06b1d1639390 (patch) | |
tree | d658045f8ad4ffcb7d6a2cc8a50f8da9981ddaa1 /include/clang/Format/Format.h | |
parent | 71607512cb70db3c1be8f0287153b681531687fc (diff) |
Add style option for number of spaces before trailing comments.
In LLVM style, a single space should be enough. In Google style, two
spaces are required.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Format/Format.h')
-rw-r--r-- | include/clang/Format/Format.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 237c3e4c3b..f8ec26af2e 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -52,6 +52,9 @@ struct FormatStyle { /// When false, use the same indentation level as for the switch statement. /// Switch statement body is always indented one level more than case labels. bool IndentCaseLabels; + + /// \brief The number of spaces to before trailing line comments. + unsigned SpacesBeforeTrailingComments; }; /// \brief Returns a format style complying with the LLVM coding standards: |