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.
5 lines
2.7 KiB
5 lines
2.7 KiB
5 years ago
|
<!DOCTYPE html>
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferIR__IssueLog (InferIR.InferIR__IssueLog)</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__IssueLog</span></h1></header><p>Module to store a map from procnames to error logs. Starts with an empty map.</p><div class="spec val" id="val-iter"><a href="#val-iter" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>iter : (<a href="../InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span class="keyword">‑></span> <a href="../InferIR/Errlog/index.html#type-t">InferIR.Errlog.t</a> <span class="keyword">‑></span> unit) <span class="keyword">‑></span> unit</code></div><div class="doc"><p>iterate a function on map contents</p></div></div><div class="spec val" id="val-get_errlog"><a href="#val-get_errlog" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>get_errlog : <a href="../InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span class="keyword">‑></span> <a href="../InferIR/Errlog/index.html#type-t">InferIR.Errlog.t</a></code></div><div class="doc"><p>Get the error log for a given procname. If not present, then add the association from
|
||
|
procname to an empty error log and return the latter.</p></div></div><div class="spec val" id="val-store"><a href="#val-store" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>store : string <span class="keyword">‑></span> <a href="../../InferBase/InferBase/SourceFile/index.html#type-t">InferBase.SourceFile.t</a> <span class="keyword">‑></span> unit</code></div><div class="doc"><p>If there are any issues in the log, <code class="code">store dirname filename</code> stores map to <code class="code">infer-out/dirname/filename</code>.
|
||
|
Otherwise, no file is written.</p></div></div><div class="spec val" id="val-load"><a href="#val-load" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>load : string <span class="keyword">‑></span> unit</code></div><div class="doc"><p><code class="code">load directory</code> resets the issue map first, then walks <code class="code">infer-out/directory</code>, merging all
|
||
|
maps stored in the found files into the current map.</p></div></div></body></html>
|