feat: use run-clang-format in cc --fix mode
This commit is contained in:
parent
1988c6876d
commit
03553abc11
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ const LINTERS = [ {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result.status) process.exit(result.status)
|
if (result.status) {
|
||||||
|
if (opts.fix) spawnAndCheckExitCode('python', ['script/run-clang-format.py', ...filenames])
|
||||||
|
process.exit(result.status)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'python',
|
key: 'python',
|
||||||
|
|
Loading…
Reference in a new issue