Commit Graph

4 Commits

Author SHA1 Message Date
Michael Tautschnig 98f619f5b1 Make clang-format indent nested preprocessor directives
Since clang-format 6 there is support to indent preprocessor directives,
enabling formatting like

```
 #if foo
 #  define bar
 #endif
```
2019-03-30 12:50:59 +00:00
Michael Tautschnig 03dd6eb167 clang-format cleanup
Several forall_* macros have by now been eliminated from the code base as we
increasingly use C++11 ranged-for for those cases, or maybe don't need the
forall_* macro at all anymore. This commit just removes the unused ones from the
clang-format specification, no actual code changes.
2018-10-12 13:11:03 +00:00
thk123 7070ba1b9d 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
2018-04-23 17:51:43 +01:00
reuk f18979a429 Add clang-format config 2017-10-16 11:52:18 +01:00