mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 13:52:37 +00:00
Building on #3311, which started moving the result string into a `unique_ptr`, instead have `StringLiteral` use a `BumpPtrAllocator` to manage memory. But also, detect when a string is really trivial during `Lex` and, if so, return `contents_` directly.
Toolchain
A design is currently maintained in Google Drive. It'll be migrated to markdown once we are confident in its stability.