ad64873750
Without -header-filter='.*' clang-tidy only checks the .cpp file. Change-Id: Ib49081faa2ddf20222dfeb15841cf2b812c22462 Reviewed-on: https://skia-review.googlesource.com/c/176967 Commit-Queue: Mike Klein <mtklein@google.com> Auto-Submit: Mike Klein <mtklein@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
31 lines
475 B
Bash
Executable File
31 lines
475 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright 2018 Google Inc. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
set -e
|
|
|
|
args=""
|
|
src=""
|
|
|
|
while [ "$1" ]; do
|
|
arg=$1
|
|
|
|
args="$args $1"
|
|
shift
|
|
|
|
if [ "$arg" == "-c" ]; then
|
|
src=$1
|
|
|
|
args="$args $1"
|
|
shift
|
|
fi
|
|
done
|
|
|
|
if [ "$src" ]; then
|
|
clang-tidy -quiet -header-filter='.*' -warnings-as-errors='*' $src -- $args
|
|
fi
|
|
exec clang++ $args
|
|
|