soc/intel/xeon_sp: Drop uncore_fill_ssdt
[coreboot2.git] / util / lint / lint-stable-004-style-labels
blobdbb10acd288297449b666c34c96c2294b45f19d9
1 #!/usr/bin/env sh
3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Check that C labels begin at start-of-line
7 LINTDIR="$(
8 cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
9 pwd -P
12 # shellcheck source=helper_functions.sh
13 . "${LINTDIR}/helper_functions.sh"
15 ${FIND_FILES} | \
16 grep "^src/.*\.[csS]$" | \
17 grep -v "^src/vendorcode/wuffs/" | \
18 xargs grep -Hn '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' | \
19 grep -v "[^a-z_]default:"