Skip to content

Commit

Permalink
[clang-format] Releasenotes for rL319024 : Add option to group multip…
Browse files Browse the repository at this point in the history
…le #include blocks when sorting includes

Summary:
This change adds missing releasenotes for commit rL319024
https://reviews.llvm.org/rL319024

Patch by Krzysztof Kapusta

Reviewers: sylvestre.ledru

Reviewed By: sylvestre.ledru

Differential Revision: https://reviews.llvm.org/D40827

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319748 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
sylvestre committed Dec 5, 2017
1 parent 148bf27 commit 1339108
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,19 @@ clang-format
* Option -verbose added to the command line.
Shows the list of processed files.

* Option *IncludeBlocks* added to merge and regroup multiple ``#include`` blocks during sorting.

+-------------------------+-------------------------+-------------------------+
| Before (Preserve) | Merge | Regroup |
+=========================+=========================+=========================+
| .. code-block:: c++ | .. code-block:: c++ | .. code-block:: c++ |
| | | |
| #include "b.h" | #include "a.h" | #include "a.h" |
| | #include "b.h" | #include "b.h" |
| #include "a.b" | #include <lib/main.h> | |
| #include <lib/main.h> | | #include <lib/main.h> |
+-------------------------+-------------------------+-------------------------+

libclang
--------

Expand Down

0 comments on commit 1339108

Please sign in to comment.