Rather than use `clang-format` from $PATH (which changes between devs), use `cros format` which has a pinned version for all people. Add *.cpp to the include list as not all C++ files use *.cc. Then run format on the files to fix latent issues. BUG=None TEST=./presubmit.sh Change-Id: I28e167d454a7b089bb79e932b7265fa87e4c331f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/6475964 Commit-Queue: Mike Frysinger <vapier@chromium.org> Tested-by: Ryan Neph <ryanneph@google.com> Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Ryan Neph <ryanneph@google.com> Reviewed-by: Dominik Behr <dbehr@chromium.org> Bug: None Test: lunch brya-trunk_staging-userdebug && m libminigbm_gralloc Change-Id: I23022dbb536ade53951fe61014c5056e114f4bbc
11 lines
302 B
Bash
Executable file
11 lines
302 B
Bash
Executable file
#!/bin/sh
|
|
# Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
cros format \
|
|
--exclude 'external/*' \
|
|
--exclude 'gbm.h' \
|
|
--include '*.[ch]' \
|
|
--include '*.cc' \
|
|
--include '*.cpp' \
|
|
.
|