Make proposal filenames use 6 digits and include the title (#7245)

We've talked about adding the title to the filename several times over
the years and it seems really valuable. This requires us to compute a
"slug" for the title spelling that can be part of the filename.

Beyond that, we crossed 7000 recently, and so it seems likely that we
will need to add digits sooner rather than later here, so this goes
ahead and moves us to 6 digits so we don't have to adjust again for a
reasonable length of time.

To implement this and ensure we can sustain it going forward this adds a
tool to our pre-commit that validates (and corrects if needed) the
filename.

In order to update everything and keep links working, there are a _lot_
of changes, but the most interesting for direct review are in
`proposals/scripts`.

Assisted-by: Antigravity with Gemini

---------

Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
Chandler CarruthandRichard Smith authored and GitHub committed 2026-05-29 00:55:04 +00:00
1 parent 1cb0eecc1e
commit 94d2c1c6d4
250 files changed
+1139 -685

No files matched your search

+1 -1
View File
@@ -2298,7 +2298,7 @@ static auto LookupBuiltinName(Context& context, SemIR::LocId loc_id,
const clang::ASTContext& ast_context = context.ast_context();
// List of types based on
// https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p5448.md#details
// https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p005448.md#details
auto builtin_type =
llvm::StringSwitch<clang::QualType>(*name)
.Case("signed_char", ast_context.SignedCharTy)