mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 18:20:29 +00:00
Implement static analysis of unformed usage on local variables. (#1831)
- 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 `ASTNode` traversal. - Currently supports detection of: function parameter, return expression and rhs of assign.
This commit is contained in:
1 parent
094311133d
commit
2f4905bf70
10 files changed
+292
-8
No files matched your search
+2
-1
@@ -13,7 +13,8 @@
|
||||
// CHECK: interface ImplicitAs {
|
||||
// CHECK: ********** type checking **********
|
||||
// CHECK: ** declaring interface ImplicitAs
|
||||
// CHECK: ********** type checking complete **********
|
||||
// CHECK: ********** resolving unformed variables **********
|
||||
// CHECK: ********** printing declarations **********
|
||||
// CHECK: interface ImplicitAs {
|
||||
// CHECK: ********** starting execution **********
|
||||
// CHECK: ********** initializing globals **********
|
||||
|
||||
Reference in new issue
Block a user