carbon-lang
carbon-lang copied to clipboard
Implement static analysis of unformed usage on local variables.
- An introprocedural forward analysis that checks the may-be-formed states on local variables.
- Returns compilation error on usage of must-be-unformed variables.
- Implemented as a pass of
ASTNodetraversal. - Currently supports detection of: function parameter, return expression and rhs of assign.