]> granicus.if.org Git - clang/commitdiff
[clang-format] Releasenotes for rL319024 : Add option to group multiple #include...
authorSylvestre Ledru <sylvestre@debian.org>
Tue, 5 Dec 2017 09:23:47 +0000 (09:23 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 5 Dec 2017 09:23:47 +0000 (09:23 +0000)
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

docs/ReleaseNotes.rst

index 71e330bcb3d7bc3518cbf3a5f1791ce603d83ae3..8b562bb66eb1259513eaf0d7da7ddfe46fb68ffa 100644 (file)
@@ -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
 --------