mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
8
security/nss/automation/clang-format/run_clang_format.sh
Executable file → Normal file
8
security/nss/automation/clang-format/run_clang_format.sh
Executable file → Normal file
|
|
@ -13,7 +13,7 @@ set -e
|
|||
# Any differences between formatted and unformatted files is printed to stdout to give a hint what's wrong.
|
||||
|
||||
# Includes a default set of directories NOT to clang-format on.
|
||||
blocklist=(
|
||||
blacklist=(
|
||||
"./automation" \
|
||||
"./coreconf" \
|
||||
"./doc" \
|
||||
|
|
@ -37,8 +37,8 @@ fi
|
|||
|
||||
format_folder()
|
||||
{
|
||||
for block in "${blocklist[@]}"; do
|
||||
if [[ "$1" == "$block"* ]]; then
|
||||
for black in "${blacklist[@]}"; do
|
||||
if [[ "$1" == "$black"* ]]; then
|
||||
echo "skip $1"
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -54,7 +54,7 @@ for dir in "${dirs[@]}"; do
|
|||
if [ "${#c}" == "1" ]; then
|
||||
depth+=(-maxdepth 1)
|
||||
fi
|
||||
find "$dir" "${depth[@]}" -type f \( -name '*.[ch]' -o -name '*.cc' \) -exec clang-format -sort-includes=false -i {} \+
|
||||
find "$dir" "${depth[@]}" -type f \( -name '*.[ch]' -o -name '*.cc' \) -exec clang-format -i {} \+
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue