stage3: unify to cleanup; MIR return-defer; docs+smokes updated; LLVM(harness): finalize_phis ownership, ret.py simplified, uses-predeclare; cleanup return override green; method-postfix cleanup return WIP (PHI head)

This commit is contained in:
Selfhosting Dev
2025-09-19 02:07:38 +09:00
parent 951a050592
commit 5e818eeb7e
205 changed files with 9671 additions and 1849 deletions

View File

@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -euo pipefail
# Lints docs for deprecated surface keyword 'finally'.
# Allows occurrences under docs/archive and docs/private only (historical/papers).
ROOT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)
cd "$ROOT_DIR"
violations=$(rg -n "\bfinally\b" docs \
--glob '!docs/archive/**' --glob '!docs/private/**' \
--glob '!docs/reference/ir/**' \
--glob '!docs/reference/architecture/parser_mvp_stage3.md' \
--glob '!docs/reference/language/LANGUAGE_REFERENCE_2025.md' \
--glob '!docs/development/**' --glob '!docs/phases/**' --glob '!docs/papers/**' | wc -l | tr -d ' ')
if [[ "$violations" != "0" ]]; then
echo "❌ docs lint: found deprecated 'finally' mentions outside archive/private ($violations hits)" >&2
rg -n "\bfinally\b" docs \
--glob '!docs/archive/**' --glob '!docs/private/**' \
--glob '!docs/reference/ir/**' \
--glob '!docs/reference/architecture/parser_mvp_stage3.md' \
--glob '!docs/reference/language/LANGUAGE_REFERENCE_2025.md' \
--glob '!docs/development/**' --glob '!docs/phases/**' --glob '!docs/papers/**'
exit 1
fi
echo "✅ docs lint: no forbidden 'finally' mentions found." >&2
exit 0