diff options
author | Krasimir Georgiev <krasimir@google.com> | 2017-06-23 11:46:03 +0000 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2017-06-23 11:46:03 +0000 |
commit | 598aad0fe0d99790d34390533e51e3d0e85531ef (patch) | |
tree | f107f40c5f661836791205db8444e72df6699acb /docs | |
parent | 4c8bc8646c93899503aa9efbb92832e952c4bbec (diff) | |
download | clang-598aad0fe0d99790d34390533e51e3d0e85531ef.tar.gz |
[clang-format] Add a SortUsingDeclaration option and enable it by default
Summary:
This patch adds a `SortUsingDeclaration` style option and enables it for llvm
style.
Reviewers: klimek
Reviewed By: klimek
Subscribers: klimek
Differential Revision: https://reviews.llvm.org/D34453
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ClangFormatStyleOptions.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ClangFormatStyleOptions.rst b/docs/ClangFormatStyleOptions.rst index 8555f06875..6133ca9900 100644 --- a/docs/ClangFormatStyleOptions.rst +++ b/docs/ClangFormatStyleOptions.rst @@ -1475,6 +1475,15 @@ the configuration (without a prefix: ``Auto``). #include "b.h" vs. #include "a.h" #include "a.h" #include "b.h" +**SortUsingDeclarations** (``bool``) + If ``true``, clang-format will sort using declarations. + + .. code-block:: c++ + + false: true: + using std::cout; vs. using std::cin; + using std::cin; using std::cout; + **SpaceAfterCStyleCast** (``bool``) If ``true``, a space is inserted after C style casts. |