Fix clang-format include order issues

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2018-06-07 12:48:53 +02:00
parent 8bfeaeaced
commit 2edde06c07
4 changed files with 10 additions and 6 deletions

View File

@ -47,12 +47,10 @@ DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|isl|json)/)'
Priority: 3
- Regex: '.*'
- Regex: '<.*>'
Priority: 1
- Regex: '.*'
Priority: 2
IndentCaseLabels: false
IndentWidth: 4
IndentWrappedFunctionNames: false

View File

@ -21,9 +21,11 @@
#include "design.h"
#include "chip.h"
#include "pybindings.h"
#include "emb.h"
// include after design.h/chip.h
#include "pybindings.h"
// Required to determine concatenated module name (which differs for different archs)
#define PASTER(x, y) x ## _ ## y
#define EVALUATOR(x, y) PASTER(x,y)

View File

@ -20,6 +20,8 @@
#include "design.h"
#include "chip.h"
// include after design.h/chip.h
#include "pybindings.h"
void arch_wrap_python() {

View File

@ -20,6 +20,8 @@
#include "design.h"
#include "chip.h"
// include after design.h/chip.h
#include "pybindings.h"
void arch_wrap_python() {