mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:18:14 +08:00
[clang-format] Releasenotes for rL319024 : Add option to group multiple #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 llvm-svn: 319748
This commit is contained in:
@@ -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
|
||||
--------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user