chore: applies fixes to clang format (#5677)

* chore: update the clang-format version

* chore: specify the clang format version to use

* chore: remove style tag since it will default to file
This commit is contained in:
alschmiedt
2021-11-05 12:55:09 -07:00
committed by GitHub
parent 3eb5c95478
commit 6448528e9a
4 changed files with 15 additions and 12 deletions

View File

@@ -18,6 +18,7 @@ var fs = require('fs');
var execSync = require('child_process').execSync;
var through2 = require('through2');
const clangFormat = require('clang-format');
const clangFormatter = require('gulp-clang-format');
var closureCompiler = require('google-closure-compiler').gulp();
var closureDeps = require('google-closure-deps');
@@ -516,7 +517,7 @@ function cleanBuildDir(done) {
*/
function format() {
return gulp.src(['core/**/*.js'], {base: '.'})
.pipe(clangFormatter.format('file'))
.pipe(clangFormatter.format('file', clangFormat))
.pipe(gulp.dest('.'));
};