Skip to main content

Module controlled_delegatecall

Module controlled_delegatecall 

Source

Re-exportsยง

use super::ControlledDelegatecall; ๐Ÿ”’
use crate::linter::LateLintPass; ๐Ÿ”’
use crate::linter::LintContext; ๐Ÿ”’
use crate::sol::Severity; ๐Ÿ”’
use crate::sol::SolLint; ๐Ÿ”’
use crate::sol::analysis::arg_for_param; ๐Ÿ”’
use crate::sol::analysis::branch_always_exits; ๐Ÿ”’
use crate::sol::analysis::count_placeholders; ๐Ÿ”’
use crate::sol::analysis::do_while_user_stmts; ๐Ÿ”’
use crate::sol::analysis::has_side_effect; ๐Ÿ”’
use crate::sol::analysis::is_address_like_cast; ๐Ÿ”’
use crate::sol::analysis::is_loop_termination_if; ๐Ÿ”’
use crate::sol::analysis::is_require_or_assert; ๐Ÿ”’
use crate::sol::analysis::loop_update; ๐Ÿ”’
use crate::sol::analysis::stmts_before_placeholder; ๐Ÿ”’
use crate::sol::analysis::stmts_break_or_continue; ๐Ÿ”’
use crate::sol::analysis::tuple_elems; ๐Ÿ”’
use crate::sol::analysis::var_is_address_like; ๐Ÿ”’
use solar::ast::BinOpKind; ๐Ÿ”’
use solar::ast::LitKind; ๐Ÿ”’
use solar::ast::UnOpKind; ๐Ÿ”’
use solar::interface::Span; ๐Ÿ”’
use solar::interface::sym; ๐Ÿ”’
use solar::sema::Gcx; ๐Ÿ”’
use solar::sema::builtins::Builtin; ๐Ÿ”’
use solar::sema::hir; ๐Ÿ”’
use solar::sema::hir::ElementaryType; ๐Ÿ”’
use solar::sema::hir::Expr; ๐Ÿ”’
use solar::sema::hir::ExprKind; ๐Ÿ”’
use solar::sema::hir::FunctionKind; ๐Ÿ”’
use solar::sema::hir::ItemId; ๐Ÿ”’
use solar::sema::hir::LoopSource; ๐Ÿ”’
use solar::sema::hir::Res; ๐Ÿ”’
use solar::sema::hir::Stmt; ๐Ÿ”’
use solar::sema::hir::StmtKind; ๐Ÿ”’
use solar::sema::hir::TypeKind; ๐Ÿ”’
use solar::sema::hir::VariableId; ๐Ÿ”’
use solar::sema::hir::Visit; ๐Ÿ”’
use std::collections::HashSet; ๐Ÿ”’
use std::ops::ControlFlow; ๐Ÿ”’

Structsยง

Analyzer ๐Ÿ”’
Flow-sensitive walk tracking which local address variables provably hold a trusted target.

Constantsยง

HELPER_DEPTH ๐Ÿ”’
How many levels of no-argument helper functions are inlined when checking a target.

Staticsยง

CONTROLLED_DELEGATECALL

Functionsยง

intersect ๐Ÿ”’
is_cast ๐Ÿ”’
address(..), IFoo(..), uintN(..), intN(..) or bytes(..) cast head.
modifier_safe_vars ๐Ÿ”’
Caller variables proven trusted by the statements a modifier runs before _: a parameter that is bound to the variable, never reassigned in the prefix, and safe when _ is reached.
no_arg_helper_return ๐Ÿ”’
The expression returned by a non-virtual, non-overriding, parameterless helper whose body is a single return <expr>; or <ret> = <expr>; (optionally followed by a bare return;).
underlying_var ๐Ÿ”’
The variable a bare identifier refers to, looking through parens, payable(...) and address-like casts or integer casts preserving all 160 address bits.