carbon-lang
carbon-lang copied to clipboard
Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
In the interests of not creating distinct vtables for each class specific - not every specific needs the vtable, so move it into a separate entity that can be made...
Fix `pattern_block_id` and `call_params_id` for C++ function decl import, to get the correct SemIR printout. Closes #5449
This is the first step to having Clang's runtime libraries fully available for the Carbon toolchain. This PR focuses on the lowest level runtimes, the CRT files and the builtins...
### Summary of issue: ``` interface Z { let X:! type; } impl {.a: (), .b: ()} as Z where .X = i32 {} impl {.b: (), .a: ()} as...
Add support for references and pointers in function parameters and return statements.
Currently, every function declaration is associated with two blocks, the decl block and the pattern block. The pattern block contains the pattern insts that define the entity's parameter list. The...
- [Feature Proposal](https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p3763.md) - [Design Proposal](https://docs.google.com/document/d/16vhcVeZN2w8iIl_a6gNxd5kFZPPfWh3f5_TnaK9sdHQ) - [Basic tests](https://github.com/carbon-language/carbon-lang/blob/cd1ecf1297808623b3aff1c4d105c058a4ee5724/toolchain/check/testdata/function/declaration/no_prelude/name_poisoning.carbon)
This discussion: https://discord.com/channels/655572317891461132/655578254970716160/1349053005609046108 Requires using `AddPlaceholderInst()` and `ReplaceInstBeforeConstantUse()` instead of `AddInst()` in some cases to allow using the `InstId` when looking up the name. `Destroy` is a special case (in...