MCPcopy Create free account
hub / github.com/VKCOM/kphp / is_safe_simple_expr

Function is_safe_simple_expr

compiler/rewrite-rules/rules_runtime.cpp:154–192  ·  view source on GitHub ↗

is_safe_simple_expr reports whether v is "safe" from the point of the optimizations that may depend on the v result lifetimes it's stricter than is_pure(): the pure expression is allowed to allocate, but safe simple expressions are not allowed to do that

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

to_tmp_string_exprFunction · 0.85

Calls 4

valueMethod · 0.80
typeMethod · 0.45
instanceMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected