diff options
| author | paul_hoad <paul_hoad@amat.com> | 2019-11-08 21:12:22 +0000 |
|---|---|---|
| committer | paul_hoad <paul_hoad@amat.com> | 2019-11-08 21:14:29 +0000 |
| commit | 860ee4f3ebf56f4d2e387ceec9b8028636e72d2c (patch) | |
| tree | d2fd3f52885523c0d6caa039b7ffdf7ad6332a44 /clang/docs/ClangFormatStyleOptions.rst | |
| parent | fa03665e8666e72ca1c5c2f78aa86e8de64bdd1e (diff) | |
| download | bcm5719-llvm-860ee4f3ebf56f4d2e387ceec9b8028636e72d2c.tar.gz bcm5719-llvm-860ee4f3ebf56f4d2e387ceec9b8028636e72d2c.zip | |
[clang-format] NFC allow Format.h to be clang-formatted but still maintain the same doc layout in ClangFormatStyleOptions.rst
Summary:
Format.h is used to generate ClangFormatStyleOptions.rst, the layout of the comments is critical to the rst file. Accidentally clang-formatting Format.h can lead to the .rst changing.
This revision simply add // clang-format off/on statement around the areas who formatting needs to be maintained, mainly around the options that are related to what happens when the line breaks due to `ColumnLimit` (which is what is happening to the comment)
This allows Format.h to be clang-formatted without causing a change in the documentation when dump_format_style.py is rerun, which is also part of the revision.
Reviewers: mitchell-stellar, klimek, sammccall, owenpan
Reviewed By: mitchell-stellar
Subscribers: cfe-commits
Tags: #clang, #clang-format
Differential Revision: https://reviews.llvm.org/D69951
Diffstat (limited to 'clang/docs/ClangFormatStyleOptions.rst')
| -rw-r--r-- | clang/docs/ClangFormatStyleOptions.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 655923db9bc..e0ad9653213 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -1584,8 +1584,9 @@ the configuration (without a prefix: ``Auto``). **IndentCaseLabels** (``bool``) Indent case labels one level from the switch statement. - When ``false``, use the same indentation level as for the switch statement. - Switch statement body is always indented one level more than case labels. + When ``false``, use the same indentation level as for the switch + statement. Switch statement body is always indented one level more than + case labels. .. code-block:: c++ |

