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.
6 lines
7.2 KiB
6 lines
7.2 KiB
5 years ago
|
<!DOCTYPE html>
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferIR__QualifiedCppName (InferIR.InferIR__QualifiedCppName)</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> — <span class="package">package <a href="../index.html">InferIR</a></span></nav><header><h1><span class="keyword">Module</span> <span class="module-path">InferIR__QualifiedCppName</span></h1></header><div class="spec exception" id="exception-ParseError"><a href="#exception-ParseError" class="anchor"></a><div class="def exception"><code><span class="keyword">exception </span></code><code><span class="exception">ParseError</span><span class="keyword"> of </span>string</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></code></div><div class="doc"></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare"><a href="#val-compare" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a> <span class="keyword">‑></span> int</code></div><div class="doc"></div></div></details></div><div class="spec val" id="val-empty"><a href="#val-empty" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>empty : <a href="index.html#type-t">t</a></code></div><div class="doc"><p>empty qualified name</p></div></div><div class="spec val" id="val-of_qual_string"><a href="#val-of_qual_string" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>of_qual_string : string <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"><p>attempts to parse the argument into a list::of::possibly::templated<T>::qualifiers</p></div></div><div class="spec val" id="val-to_qual_string"><a href="#val-to_qual_string" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>to_qual_string : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> string</code></div><div class="doc"><p>returns qualified name as a string with "::" as a separator between qualifiers</p></div></div><div class="spec val" id="val-append_qualifier"><a href="#val-append_qualifier" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>append_qualifier : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> qual:string <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"><p>append qualifier to the end (innermost scope) of the qualified name</p></div></div><div class="spec val" id="val-extract_last"><a href="#val-extract_last" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>extract_last : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> (string<span class="keyword"> * </span><a href="index.html#type-t">t</a>) option</code></div><div class="doc"><p>returns last (innermost scope) qualifier and qualified name without last qualifier</p></div></div><div class="spec val" id="val-strip_template_args"><a href="#val-strip_template_args" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>strip_template_args : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"><p>returns qualified name without template arguments. For example:
|
||
|
input: std::shared_ptr<int>::shared_ptr<long>
|
||
|
output: std::shared_ptr::shared_ptr</p></div></div><div class="spec val" id="val-append_template_args_to_last"><a href="#val-append_template_args_to_last" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>append_template_args_to_last : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> args:string <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"><p>append template arguments to the last qualifier. Fails if qualified name is empty or it already has
|
||
|
template args</p></div></div><div class="spec val" id="val-to_list"><a href="#val-to_list" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>to_list : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> string list</code></div><div class="doc"><p>returns list of qualifiers</p></div></div><div class="spec val" id="val-to_rev_list"><a href="#val-to_rev_list" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>to_rev_list : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> string list</code></div><div class="doc"><p>returns reversed list of qualifiers, ie innermost scope is the first element</p></div></div><div class="spec val" id="val-of_list"><a href="#val-of_list" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>of_list : string list <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"><p>given list of qualifiers in normal order produce qualified name <code class="code">"std", "move"</code></p></div></div><div class="spec val" id="val-of_rev_list"><a href="#val-of_rev_list" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>of_rev_list : string list <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"><p>given reversed list of qualifiers, produce qualified name (ie. <code class="code">"move", "std"</code> for std::move )</p></div></div><div class="spec val" id="val-from_field_qualified_name"><a href="#val-from_field_qualified_name" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>from_field_qualified_name : <a href="index.html#type-t">t</a> <span class="keyword">‑></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">‑></span> <a href="index.html#type-t">t</a> <span class="keyword">‑></span> unit</code></div><div class="doc"></div></div><div class="spec module" id="module-Match"><a href="#module-Match" class="anchor"></a><div class="def module"><code><span class="keyword">module </span><a href="Match/index.html">Match</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="doc"><p>Module to match qualified C++ procnames "fuzzily", that is up to namescapes and templating. In
|
||
|
particular, this deals with the following issues:</p></div></div></body></html>
|