You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
9.3 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CMethodSignature (infer.InferModules.CMethodSignature)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><meta name="generator" content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><nav id="top"><a href="../index.html">Up</a> &mdash; <span class="package">package <a href="../../index.html">infer</a></span></nav><header><h1><span class="keyword">Module</span> <span class="module-path">InferModules.CMethodSignature</span></h1></header><p>Define the signature of a method consisting of its name, its arguments, return type, location
and whether its an instance method.</p><div class="spec type" id="type-param_type"><a href="#type-param_type" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>param_type</code><code></code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-param_type.name" class="anchored"><td class="def field"><a href="#type-param_type.name" class="anchor"></a><code>name : <a href="../../../InferIR/InferIR/Mangled/index.html#type-t">InferIR.Mangled.t</a>;</code></td></tr><tr id="type-param_type.typ" class="anchored"><td class="def field"><a href="#type-param_type.typ" class="anchor"></a><code>typ : <a href="../../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a>;</code></td></tr><tr id="type-param_type.is_pointer_to_const" class="anchored"><td class="def field"><a href="#type-param_type.is_pointer_to_const" class="anchor"></a><code>is_pointer_to_const : bool;</code></td></tr><tr id="type-param_type.is_value" class="anchored"><td class="def field"><a href="#type-param_type.is_value" class="anchor"></a><code>is_value : bool;</code></td></tr><tr id="type-param_type.annot" class="anchored"><td class="def field"><a href="#type-param_type.annot" class="anchor"></a><code>annot : <a href="../../../InferIR/InferIR/Annot/Item/index.html#type-t">InferIR.Annot.Item.t</a>;</code></td></tr></table><code>}</code><code></code></div><div class="doc"></div></div><div class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>t</code><code></code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : <a href="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a>;</code></td></tr><tr id="type-t.access" class="anchored"><td class="def field"><a href="#type-t.access" class="anchor"></a><code>access : <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-access_specifier">InferGenerated.Clang_ast_t.access_specifier</a>;</code></td></tr><tr id="type-t.class_param" class="anchored"><td class="def field"><a href="#type-t.class_param" class="anchor"></a><code>class_param : <a href="index.html#type-param_type">param_type</a> option;</code></td></tr><tr id="type-t.params" class="anchored"><td class="def field"><a href="#type-t.params" class="anchor"></a><code>params : <a href="index.html#type-param_type">param_type</a> list;</code></td></tr><tr id="type-t.ret_type" class="anchored"><td class="def field"><a href="#type-t.ret_type" class="anchor"></a><code>ret_type : <a href="../../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a><span class="keyword"> * </span><a href="../../../InferIR/InferIR/Annot/Item/index.html#type-t">InferIR.Annot.Item.t</a>;</code></td></tr><tr id="type-t.attributes" class="anchored"><td class="def field"><a href="#type-t.attributes" class="anchor"></a><code>attributes : <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-attribute">InferGenerated.Clang_ast_t.attribute</a> list;</code></td></tr><tr id="type-t.loc" class="anchored"><td class="def field"><a href="#type-t.loc" class="anchor"></a><code>loc : <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-source_range">InferGenerated.Clang_ast_t.source_range</a>;</code></td></tr><tr id="type-t.method_kind" class="anchored"><td class="def field"><a href="#type-t.method_kind" class="anchor"></a><code>method_kind : <a href="../../../InferIR/InferIR/ProcAttributes/index.html#type-clang_method_kind">InferIR.ProcAttributes.clang_method_kind</a>;</code></td></tr><tr id="type-t.is_cpp_virtual" class="anchored"><td class="def field"><a href="#type-t.is_cpp_virtual" class="anchor"></a><code>is_cpp_virtual : bool;</code></td></tr><tr id="type-t.is_cpp_nothrow" class="anchored"><td class="def field"><a href="#type-t.is_cpp_nothrow" class="anchor"></a><code>is_cpp_nothrow : bool;</code></td></tr><tr id="type-t.pointer_to_parent" class="anchored"><td class="def field"><a href="#type-t.pointer_to_parent" class="anchor"></a><code>pointer_to_parent : <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-pointer">InferGenerated.Clang_ast_t.pointer</a> option;</code></td></tr><tr id="type-t.pointer_to_property_opt" class="anchored"><td class="def field"><a href="#type-t.pointer_to_property_opt" class="anchor"></a><code>pointer_to_property_opt : <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-pointer">InferGenerated.Clang_ast_t.pointer</a> option;</code></td></tr><tr id="type-t.return_param_typ" class="anchored"><td class="def field"><a href="#type-t.return_param_typ" class="anchor"></a><code>return_param_typ : <a href="../../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a> option;</code></td></tr></table><code>}</code><code></code></div><div class="doc"></div></div><div class="spec val" id="val-is_getter"><a href="#val-is_getter" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>is_getter : <a href="index.html#type-t">t</a> <span class="keyword">&#8209;&gt;</span> bool</code></div><div class="doc"></div></div><div class="spec val" id="val-is_setter"><a href="#val-is_setter" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>is_setter : <a href="index.html#type-t">t</a> <span class="keyword">&#8209;&gt;</span> bool</code></div><div class="doc"></div></div><div class="spec val" id="val-mk"><a href="#val-mk" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>mk : <a href="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-param_type">param_type</a> option <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-param_type">param_type</a> list <span class="keyword">&#8209;&gt;</span> (<a href="../../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a><span class="keyword"> * </span><a href="../../../InferIR/InferIR/Annot/Item/index.html#type-t">InferIR.Annot.Item.t</a>) <span class="keyword">&#8209;&gt;</span> <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-attribute">InferGenerated.Clang_ast_t.attribute</a> list <span class="keyword">&#8209;&gt;</span> <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-source_range">InferGenerated.Clang_ast_t.source_range</a> <span class="keyword">&#8209;&gt;</span> <a href="../../../InferIR/InferIR/ProcAttributes/index.html#type-clang_method_kind">InferIR.ProcAttributes.clang_method_kind</a> <span class="keyword">&#8209;&gt;</span> ?&#8288;is_cpp_virtual:bool <span class="keyword">&#8209;&gt;</span> ?&#8288;is_cpp_nothrow:bool <span class="keyword">&#8209;&gt;</span> <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-pointer">InferGenerated.Clang_ast_t.pointer</a> option <span class="keyword">&#8209;&gt;</span> <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-pointer">InferGenerated.Clang_ast_t.pointer</a> option <span class="keyword">&#8209;&gt;</span> <a href="../../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a> option <span class="keyword">&#8209;&gt;</span> <a href="../../../InferGenerated/InferGenerated/Clang_ast_t/index.html#type-access_specifier">InferGenerated.Clang_ast_t.access_specifier</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-t">t</a></code></div><div class="doc"></div></div><div class="spec val" id="val-pp"><a href="#val-pp" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>pp : Format.formatter <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-t">t</a> <span class="keyword">&#8209;&gt;</span> unit</code></div><div class="doc"></div></div><div class="spec val" id="val-mk_param_type"><a href="#val-mk_param_type" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>mk_param_type : ?&#8288;is_value:bool <span class="keyword">&#8209;&gt;</span> ?&#8288;is_pointer_to_const:bool <span class="keyword">&#8209;&gt;</span> ?&#8288;annot:<a href="../../../InferIR/InferIR/Annot/Item/index.html#type-t">InferIR.Annot.Item.t</a> <span class="keyword">&#8209;&gt;</span> <a href="../../../InferIR/InferIR/Mangled/index.html#type-t">InferIR.Mangled.t</a> <span class="keyword">&#8209;&gt;</span> <a href="../../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-param_type">param_type</a></code></div><div class="doc"></div></div></body></html>