9e4abbce2c
And ajust .clang-format options to work with the version we fetch. Change-Id: I58c6d99160eb7820652c68d5d86d864e75f45e3d
26 linhas
592 B
Bash
Arquivo Executável
26 linhas
592 B
Bash
Arquivo Executável
#!/bin/bash
|
|
|
|
# Copyright 2016 The Fuchsia Authors
|
|
#
|
|
# Use of this source code is governed by a MIT-style
|
|
# license that can be found in the LICENSE file or at
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
if [ ! -f ".clang-format" ]; then
|
|
echo "local .clang-format not found. aborting"
|
|
exit 0
|
|
fi
|
|
|
|
# There might be more than one clang-format tool, specially if chromium's
|
|
# depot tools are in the path. Try to use the system one.
|
|
|
|
CLANGFMT=./clang-format
|
|
|
|
if [ ! -f $CLANGFMT ]; then
|
|
echo "$CLANGFMT not found. Run scripts/fetch-clang-fmt to get it."
|
|
exit 0
|
|
fi
|
|
|
|
$CLANGFMT -i -style=file $@
|
|
|