blob: 1a96a8d2999ab152e8017ba1b2ecb4b850951609 [file] [log] [blame] [edit]
#!/bin/bash
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# List cc files not in BUILD.gn, and not excluded by patterns in BUILD.IGNORE
# This list can be run by human for sanity check that no imporant things are
# ignored after each uprev.
cd $(dirname $0)/..
find . -name '*.cc' \
| sed -e 's/^\.\///g' \
| xargs -n 1 -P 1 bash -c \
'for i in $(cat BUILD.IGNORE); do grep $i <(echo $0) >/dev/null && exit; done; echo $0' \
| xargs -n 1 -P 1 sh -c 'grep $0 BUILD.gn >/dev/null || echo $0'