This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
<!DOCTYPE html>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>CContext (infer.InferModules.CContext)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><metaname="generator"content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><navid="top"><ahref="../index.html">Up</a>—<spanclass="package">package <ahref="../../index.html">infer</a></span></nav><header><h1><spanclass="keyword">Module</span><spanclass="module-path">InferModules.CContext</span></h1></header><p>Contains current class and current method to be translated as well as local variables,</p><p>and the cg, cfg, and tenv corresponding to the current file.</p><divclass="spec module"id="module-StmtMap"><ahref="#module-StmtMap"class="anchor"></a><divclass="def module"><code><spanclass="keyword">module </span>StmtMap = <ahref="../ClangPointers/index.html#module-Map">ClangPointers.Map</a></code></div><divclass="doc"></div></div><divclass="spec type"id="type-curr_class"><ahref="#type-curr_class"class="anchor"></a><divclass="def type"><code><spanclass="keyword">type </span>curr_class</code><code></code><code><spanclass="keyword"> = </span></code><tableclass="variant"><trid="type-curr_class.ContextClsDeclPtr"class="anchored"><tdclass="def constructor"><ahref="#type-curr_class.ContextClsDeclPtr"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">ContextClsDeclPtr</span><spanclass="keyword"> of </span>int</code></td></tr><trid="type-curr_class.ContextNoCls"class="anchored"><tdclass="def constructor"><ahref="#type-curr_class.ContextNoCls"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">ContextNoCls</span></code></td></tr></table><code></code></div><divclass="doc"></div></div><divclass="spec include"><divclass="doc"></div><detailsopen="open"><summary><spanclass="def"><code><spanclass="keyword">include </span><spanclass="keyword">sig</span> ... <spanclass="keyword">end</span></code></span></summary><divclass="spec val"id="val-compare_curr_class"><ahref="#val-compare_curr_class"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>compare_curr_class : <ahref="index.html#type-curr_class">curr_class</a><spanclass="keyword">‑></span><ahref="index.html#type-curr_class">curr_class</a><spanclass="keyword">‑></span> int</code></div><divclass="doc"></div></div></details></div><divclass="spec type"id="type-str_node_map"><ahref="#type-str_node_map"class="anchor"></a><divclass="def type"><code><spanclass="keyword">type </span>str_node_map</code><code><spanclass="keyword"> = </span>(string,<ahref="../../../InferIR/InferIR/Procdesc/Node/index.html#type-t">InferIR.Procdesc.Node.t</a>)<ahref="../../../InferStdlib/InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Caml.Hashtbl.t</code><code></code></div><divclass="doc"></div></div><divclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><divclass="def type"><code><spanclass="keyword">type </span>t</code><code></code><code><spanclass="keyword"> = </span></code><code>{</code><tableclass="record"><trid="type-t.translation_unit_context"class="anchored"><tdclass="def field"><ahref="#type-t.translation_unit_context"class="anchor"></a><code>translation_unit_context : <ahref="../CFrontend_config/index.html#type-translation_unit_context">CFrontend_config.translation_unit_context</a>;</code></td></tr><trid="type-t.tenv"class="anchored"><tdclass="def field"><ahref="#type-t.tenv"class="anchor"></a><code>tenv : <ahref="../../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a>;</code></td></tr><trid="type-t.cfg"class="anchored"><tdclass="def field"><ahref="#type-t.cfg"class="anchor"></a><code>cfg : <ahref="../../../InferIR/InferIR/Cfg/index.html#type-t">InferIR.Cfg.t</a>;</code></td></tr><trid="type-t.procdesc"class="anchored"><tdclass="def field"><ahref="#type-t.procdesc"class="anchor"></a><code>procdesc : <ahref="../../../InferIR/InferIR/Procdesc/index.html#type-t">InferIR.Procdesc.t</a>;</code></td></tr><trid="type-t.is_immediate_objc_method"class="anchored"><tdclass="def field"><ahref="#type-t.is_immediate_objc_method"class="anchor"></a><code>is_immediate_objc_method : bool;</code></td></tr><trid="type-t.immediate_curr_class"class="anchored"><tdclass="def field"><ahref="#type-t.immediate_curr_class"class="anchor"></a><code>immediate_curr_class : <ahref="index.html#type-curr_class">curr_class</a>;</code></td></tr><trid="type-t.return_param_typ"class="anchored"><tdclass="def field"><ahref="#type-t.return_param_typ"class="anchor"></a><code>return_param_typ : <ahref="../../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a> option;</code></td></tr><trid="type-t.outer_context"class="anchored"><tdclass="def field"><ahref="#type-t.outer_context"class="anchor"></a><code>outer_context : <ahref="index.html#type-t">t</a> option;</code></td><tdclass="doc"><p>(** in case of objc blocks, the context of the method containing the block *)</p></td></tr><trid="type-t.blocks_static_vars"class="anchored"><tdclass="def field"><ahref="#type-t.blocks_static_vars"class="anchor"></a><code><spanclass="keyword">mutable </span>blocks_static_vars : (<ahref="../../../InferIR/InferIR/Pvar/index.html#type-t">InferIR.Pvar.t</a><spanclass="keyword"> * </span><ahref="../../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a>) list <ahref="../../../InferIR/InferIR__Typ/Procname/index.html#module-Map">InferIR.Typ.Procname.Map</a>.t;</code></td></tr><trid="type-t.label_map"class="anchored"><tdclass="def field"><ahref="#type-t.label_map"class="anchor"></a><code>label_map : <ahref="index.html#type-str_node_map">str_node_map</a>;</code></td></tr><trid="type-t.vars_to_destroy"class="anchored"><tdclass="def field"><ahref="#type-t.vars_to_destroy"class="anchor"></a><code>vars_to_destroy : <ahref="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-decl">InferGenerated.Clang_ast_t.decl</a> list <ahref="../../InferModules__ClangPointers/Map/index.html#type-t">StmtMap.t</a>;</code></td><tdclass="doc"><p>(** mapping from a statement to a list of variables, that go out of scope after the end of the