This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>ProcAttributes (infer.IR.ProcAttributes)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.0"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../../index.html">infer</a>»<ahref="../index.html">IR</a>» ProcAttributes</nav><h1>Module <code>IR.ProcAttributes</code></h1></header><aside><p>Attributes of a procedure.</p></aside><dl><dtclass="spec type"id="type-objc_accessor_type"><ahref="#type-objc_accessor_type"class="anchor"></a><code><spanclass="keyword">type</span> objc_accessor_type</code><code> = </code><tableclass="variant"><trid="type-objc_accessor_type.Objc_getter"class="anchored"><tdclass="def constructor"><ahref="#type-objc_accessor_type.Objc_getter"class="anchor"></a><code>| </code><code><spanclass="constructor">Objc_getter</span><spanclass="keyword">of</span><ahref="../Struct/index.html#type-field">Struct.field</a></code></td></tr><trid="type-objc_accessor_type.Objc_setter"class="anchored"><tdclass="def constructor"><ahref="#type-objc_accessor_type.Objc_setter"class="anchor"></a><code>| </code><code><spanclass="constructor">Objc_setter</span><spanclass="keyword">of</span><ahref="../Struct/index.html#type-field">Struct.field</a></code></td></tr></table></dt></dl><dl><dtclass="spec value"id="val-kind_of_objc_accessor_type"><ahref="#val-kind_of_objc_accessor_type"class="anchor"></a><code><spanclass="keyword">val</span> kind_of_objc_accessor_type : <ahref="index.html#type-objc_accessor_type">objc_accessor_type</a><span>-></span> string</code></dt></dl><dl><dtclass="spec type"id="type-var_data"><ahref="#type-var_data"class="anchor"></a><code><spanclass="keyword">type</span> var_data</code><code> = </code><code>{</code><tableclass="record"><trid="type-var_data.name"class="anchored"><tdclass="def field"><ahref="#type-var_data.name"class="anchor"></a><code>name : <ahref="../Mangled/index.html#type-t">Mangled.t</a>;</code></td></tr><trid="type-var_data.typ"class="anchored"><tdclass="def field"><ahref="#type-var_data.typ"class="anchor"></a><code>typ : <ahref="../Typ/index.html#type-t">Typ.t</a>;</code></td></tr><trid="type-var_data.modify_in_block"class="anchored"><tdclass="def field"><ahref="#type-var_data.modify_in_block"class="anchor"></a><code>modify_in_block : bool;</code></td><tdclass="doc"><p>__block attribute of Objective-C variables, means that it will be modified inside a block</p></td></tr><trid="type-var_data.is_constexpr"class="anchored"><tdclass="def field"><ahref="#type-var_data.is_constexpr"class="anchor"></a><code>is_constexpr : bool;</code></td></tr></table><code>}</code></dt><dtclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><code><spanclass="keyword">type</span> t</code><code> = </code><code>{</code><tableclass="record"><trid="type-t.access"class="anchored"><tdclass="def field"><ahref="#type-t.access"class="anchor"></a><code>access : <ahref="../PredSymb/index.html#type-access">PredSymb.access</a>;</code></td><tdclass="doc"><p>visibility access</p></td></tr><trid="type-t.captured"class="anchored"><tdclass="def field"><ahref="#type-t.captured"class="anchor"></a><code>captured : <span><span>(<ahref="../Mangled/index.html#type-t">Mangled.t</a> * <ahref="../Typ/index.html#type-t">Typ.t</a>)</span> list</span>;</code></td><tdclass="doc"><p>name and type of variables captured in blocks</p></td></tr><trid="type-t.exceptions"class="anchored"><tdclass="def field"><ahref="#type-t.exceptions"class="anchor"></a><code>exceptions : <span>string list</span>;</code></td><tdclass="doc"><p>exceptions thrown by the procedure</p></td></tr><trid="type-t.formals"class="anchored"><tdclass="def field"><ahref="#type-t.formals"class="anchor"></a><code>formals : <span><span>(<ahref="../Mangled/index.html#type-t">Mangled.t</a> * <ahref="../Typ/index.html#type-t">Typ.t</a>)</span> list</span>;</code></td><tdclass="doc"><p>name and type of formal parameters</p></td></tr><trid="type-t.const_formals"class="anchored"><tdclass="def field"><ahref="#type-t.const_formals"class="anchor"></a><code>const_formals : <span>int list</span>;</code></td><tdclass="doc"><p>list of indices of formals that are const-qualified</p></td></tr><trid="type-t.is_abstract"class="anchored"><tdclass="def field"><ahref="#type-t.is_abstract"class="anchor"></a><code>is_abstract : bool;</code></td><tdclass="doc"><p>the procedure is abstract</p></td></tr><trid="type-t.is_biabduction_model"class="anchored"><tdclass="def field"><ahref="#type-t.is_biabduction_model"class="anchor"></a><code>is_biabduction_model : bool;</code></td><tdclass="doc"><p>the procedure is a model for the biabduction analysis</p></td></tr><trid="type-t.is_bridge_method"class="anchored"><tdclass="def field"><ahref="#type-t.is_bridge_method"class="anchor"></a><code>is_bridge_method : bool;</code></td><tdclass="doc"><p>the procedure is a bridge method</p></td></tr><trid="type-t.is_defined"class="anchored"><tdclass="def field"><ahref="#type-t.is_defined"class="anchor"></a><code>is_defined : bool;</code></td><tdclass="doc"><p>true if the procedure is defined, and not just declared</p></td></tr><trid="type-t.is_java_synchronized_method"class="anchored"><tdclass="def field"><ahref="#type-t.is_java_synchronized_method"class="anchor"></a><code>is_java_synchronized_method : bool;</code></td><tdclass="doc"><p>the procedure is a Java synchronized method</p></td></tr><trid="type-t.passed_as_noescape_block_to"class="anchored"><tdclass="def field"><ahref="#type-t.passed_as_noescape_block_to"class="anchor"></a><code>passed_as_noescape_block_to : <span><ahref="../Procname/index.html#type-t">Procname.t</a> option</span>;</code></td><tdclass="doc"><p>Present if the procedure is an Objective-C block that has been passed to the given method in a position annotated with the NS_NOESCAPE attribute.</p></td></tr><trid="type-t.is_no_return"class="anchored"><tdclass="def field"><ahref="#type-t.is_no_return"class="anchor"></a><code>is_no_return : bool;</code></td><tdclass="doc"><p>the procedure is known not to return</p></td></tr><trid="type-t.is_specialized"class="anchored"><tdclass="def field"><ahref="#type-t.is_specialized"class="anchor"></a><code>is_specialized : bool;</code></td><tdclass="doc"><p>the procedure is a clone specialized for dynamic dispatch handling</p></td></tr><trid="type-t.is_synthetic_method"class="anchored"><tdclass="def field"><ahref="#type-t.is_synthetic_method"class="anchor"></a><code>is_synthetic_method : bool;</code></td><tdclass="doc"><p>the procedure is a synthetic method</p></td></tr><trid="type-t.is_variadic"class="anchored"><tdclass="def field"><ahref="#type-t.is_variadic"class="anchor"></a><code>is_variadic : bool;</code></td><tdclass="doc"><p>the procedure is variadic, only supported for Clang procedures</p></td></tr><trid="type-t.sentinel_attr"class="anchored"><tdclass="def field"><ahref="#type-t.sentinel_attr"class="anchor"></a><code>sentinel_attr : <span><span>(int * int)</span> option</span>;</code></td><tdclass="doc"><p>__attribute__((sentinel(int, int)))</p></td></tr><trid="type-t.clang_method_kind"class="anchored"><tdclass="def field"><ahref="#type-t.clang_method_kind"class="anchor"></a><code>clang_method_kind : <ahref="../ClangMethodKind/index.html#type-t">ClangMethodKind.t</a>;</code></td><tdclass="doc"><p>the kind of method the procedure is</p></td></tr><trid="type-t.loc"class="anchored"><tdclass="def field"><ahref="#type-t.loc"class="anchor"></a><code>loc : <ahref="../../IBase/Location/index.html#type-t">IBase.Location.t</a>;</code></td><tdclass="doc"><p>location of this procedure in the source code</p></td></tr><trid="type-t.translation_unit"class="anchored"><tdclass="def field"><ahref="#type-t.translation_unit"class="anchor"></a><code>translation_unit : <ahref="../../IBase/SourceFile/index.html#type-t">IBase.SourceFile.t</a>;</code></td><tdclass="doc"><p>source file where the procedure was captured</p></td></tr><trid="type-t.locals"class="anchored"><tdclass="def field"><ahref="#type-t.locals"class="anchor"></a><code><spanclass="keyword">mutable</span> locals : <span><ahref="index.html#type-var_data">var_data</a> list</span>;</code></td><tdclass="doc"><p>name, type and attributes of local variables</p></td></tr><trid="type-t.method_annotation"class="anchored"><tdclass="def field"><ahref="#type-t.method_annotation"class="anchor"></a><code>method_annotation : <ahref="../Annot/Method/index.html#type-t">Annot.Method.t</a>;</code></td><tdclass="doc"><p>annotations for all methods</p></td></tr><trid="type-t.objc_accessor"class="anchored"><tdclass="def field"><ahref="#type-t.objc_accessor"class="anchor"></a><code>objc_accessor : <span><ahref="index.html#type-objc_accessor_type">objc_accessor_type</a> option</span>;</code></td><tdclass="doc"><p>type of ObjC accessor, if any</p></td></tr><trid="type-t.proc_name"class="anchored"><tdclass="def field"><ahref="#type-t.proc_name"class="anchor"></a><code>proc_name : <ahref="../Procname/index.html#type-t">Procname.t</a>;</code></td><tdclass="doc"><p>name of the procedure</p></td></tr><trid="type-t.ret_type"class="anchored"><tdclass="def field"><ahref="#type-t.ret_type"class="anchor"></a><code>ret_type : <ahref="../Typ/index.html#type-t">Typ.t</a>;</code></td><tdclass="doc"><p>return type</p></td></tr><trid="type-t.has_added_return_param"class="anchored"><tdclass="def field"><ahref="#type-t.has_added_return_param"class="anchor"></a><code>has_added_return_param : bool;</code></td><tdclass="doc"><p>whether or not a return param was added</p></td></tr></table><code>}</code></dt></dl><dl><dtclass="spec value"id="val-default"><ahref="#val-default"class="anchor"></a><code><spanclass="keyword">val</span> default : <ahref="../../IBase/SourceFile/index.html#type-t">IBase.SourceFile.t</a><span>-></span><ahref="../Procname/index.html#type-t">Procname.t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dd><p>Create a proc_attributes with default values.</p></dd></dl><dl><dtclass="spec value"id="val-pp"><ahref="#val-pp"class="anchor"></a><code><spanclass="keyword">val</span> pp : Stdlib.Format.formatter <span>-></span><ahref="index.html#type-t">t</a><span>-></span> unit</code></dt><dtclass="spec value"id="val-get_annotated_formals"><ahref="#val-get_annotated_formals"class="anchor"></a><code><spanclass="keyword">val</span> get_annotated_formals : <ahref="index.html#type-t">t</a><span>-></span><span><span>(<span>(<ahref="../Mangled/index.html#type-t">Mangled.t</a> * <ahref="../Typ/index.html#type-t">Typ.t</a>)</span> * <ahref="../Annot/Item/index.html#type-t">Annot.Item.t</a>)</span> list</span></code></dt></dl><divclass="spec module"id="module-SQLite"><ahref="#module-SQLite"class="anchor"></a><code><spanclass="keyword">module</span><ahref="SQLite/index.html">SQLite</a> : <ahref="../../IBase/SqliteUtils/index.html#module-type-Data">IBase.SqliteUtils.Data</a><spanclass="keyword">with</span><spanclass="keyword">type</span><ahref="../../IBase/SqliteUtils/module-type-Data/index.html#type-t">t</a> = <ahref="index.html#type-t">t</a></code></div></div></body></html>