MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / fuzzable_var_get_init

Function fuzzable_var_get_init

src/program/transform.rs:1518–1523  ·  view source on GitHub ↗
(node: &Node)

Source from the content-addressed store, hash-verified

1516 }
1517
1518 pub fn fuzzable_var_get_init(node: &Node) -> &Node {
1519 if let Clang::VarDecl(vd) = &node.kind {
1520 return vd.get_init(node).ignore_cast().ignore_parent();
1521 }
1522 unreachable!("node must be fuzzable! node: {node:?}")
1523 }
1524
1525 /// replace a pattern to a str in a file.
1526 pub fn replace_string_in_file(file: &Path, pat: &str, to: &str) -> eyre::Result<()> {

Callers

nothing calls this directly

Calls 3

ignore_parentMethod · 0.80
ignore_castMethod · 0.80
get_initMethod · 0.80

Tested by

no test coverage detected