Sort includes using clang-format

In current version of clang-format, this leaves groupings alone and just
sorts within the group.

For example, given a list of includes like:

```
include "boolbv.h"

include <util/std_types.h>
include <util/std_expr.h>
include <util/arith_tools.h>
include <util/base_type.h>
include <util/pointer_offset_size.h>

include <util/c_types.h>

```

These will be sorted to:

```
include "boolbv.h"

include <util/arith_tools.h>
include <util/base_type.h>
include <util/pointer_offset_size.h>
include <util/std_expr.h>
include <util/std_types.h>

include <util/c_types.h>
```

Note the "groups" are left untouched, the ordering occurs within the
groups
This commit is contained in:
thk123 2018-04-23 15:27:55 +01:00
parent 7d247da207
commit 7070ba1b9d
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ NamespaceIndentation: None
PenaltyBreakString: 10000
PointerAlignment: Right
ReflowComments: 'false'
SortIncludes: 'false'
SortIncludes: 'true'
SpaceAfterCStyleCast: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: Never