https://bugs.llvm.org/show_bug.cgi?id=46328
Bug ID: 46328
Summary: Using SortPriority split include groups (= includes
with the same Priority field)
Product: clang
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
When using IncludeBlocks: Regroup, it seems SortPriority takes precedence over
Priority, which is counter intuitive: I wouldn't expect blocks to be split when
the includes have the same priority.
Exemple:
---------------------------
IncludeBlocks: Regroup
IncludeCategories:
# G1
- Regex: 'G1_1'
Priority: 0
SortPriority: 0
- Regex: 'G1_2'
Priority: 0
SortPriority: 1
- Regex: 'G1_3'
Priority: 0
SortPriority: 2
# G2
- Regex: 'G2'
Priority: 1
---------------------------
gives the following output:
---------------------------
#include <G1_1.h>
#include <G1_2.h>
#include <G2.h>
#include <G1_3.h>
---------------------------
instead of:
---------------------------
#include <G1_1.h>
#include <G1_2.h>
#include <G1_3.h>
#include <G2.h>
---------------------------
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs