Skip to main contentModule write_after_write
Source use super::WriteAfterWrite; ๐ use crate::linter::LateLintPass; ๐ use crate::linter::LintContext; ๐ use crate::sol::Severity; ๐ use crate::sol::SolLint; ๐ use crate::sol::analysis::loop_update; ๐ use solar::interface::Span; ๐ use solar::sema::Gcx; ๐ use solar::sema::hir::BinOpKind; ๐ use solar::sema::hir::Block; ๐ use solar::sema::hir::CallArgs; ๐ use solar::sema::hir::CallOptions; ๐ use solar::sema::hir::Expr; ๐ use solar::sema::hir::ExprKind; ๐ use solar::sema::hir::Function; ๐ use solar::sema::hir::Stmt; ๐ use solar::sema::hir::StmtKind; ๐ use solar::sema::hir::VariableId; ๐ use std::collections::HashMap; ๐
- Analyzer ๐
- Tracks state variable writes that no later read has observed yet; a second write to such a
variable makes the pending one redundant.
- WRITE_AFTER_WRITE