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.

2 lines
8.4 KiB

This file contains ambiguous Unicode characters!

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>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferModules__RacerDModels (infer.InferModules__RacerDModels)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc %%VERSION%%"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../index.html">infer</a> &#x00BB; InferModules__RacerDModels</nav><h1>Module <code>InferModules__RacerDModels</code></h1></header><dl><dt class="spec type" id="type-container_access"><a href="#type-container_access" class="anchor"></a><code><span class="keyword">type</span> container_access</code><code> = </code><table class="variant"><tr id="type-container_access.ContainerRead" class="anchored"><td class="def constructor"><a href="#type-container_access.ContainerRead" class="anchor"></a><code>| </code><code><span class="constructor">ContainerRead</span></code></td></tr><tr id="type-container_access.ContainerWrite" class="anchored"><td class="def constructor"><a href="#type-container_access.ContainerWrite" class="anchor"></a><code>| </code><code><span class="constructor">ContainerWrite</span></code></td></tr></table></dt></dl><dl><dt class="spec value" id="val-get_container_access"><a href="#val-get_container_access" class="anchor"></a><code><span class="keyword">val</span> get_container_access : <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> <span><a href="index.html#type-container_access">container_access</a> option</span></code></dt><dd><p>return Some (access) if this procedure accesses the contents of a container (e.g., Map.get)</p></dd></dl><dl><dt class="spec value" id="val-has_return_annot"><a href="#val-has_return_annot" class="anchor"></a><code><span class="keyword">val</span> has_return_annot : <span>(<a href="../../InferIR/InferIR/Annot/Item/index.html#type-t">InferIR.Annot.Item.t</a> <span>&#45;&gt;</span> bool)</span> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_functional"><a href="#val-is_functional" class="anchor"></a><code><span class="keyword">val</span> is_functional : <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-acquires_ownership"><a href="#val-acquires_ownership" class="anchor"></a><code><span class="keyword">val</span> acquires_ownership : <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_box"><a href="#val-is_box" class="anchor"></a><code><span class="keyword">val</span> is_box : <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>return true if the given procname boxes a primitive type into a reference type</p></dd></dl><dl><dt class="spec value" id="val-is_thread_confined_method"><a href="#val-is_thread_confined_method" class="anchor"></a><code><span class="keyword">val</span> is_thread_confined_method : <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Procdesc/index.html#type-t">InferIR.Procdesc.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>Methods in @ThreadConfined classes and methods annotated with @ThreadConfined are assumed to all run on the same thread. For the moment we won't warn on accesses resulting from use of such methods at all. In future we should account for races between these methods and methods from completely different classes that don't necessarily run on the same thread as the confined object.</p></dd></dl><dl><dt class="spec value" id="val-should_analyze_proc"><a href="#val-should_analyze_proc" class="anchor"></a><code><span class="keyword">val</span> should_analyze_proc : <a href="../../InferIR/InferIR/Procdesc/index.html#type-t">InferIR.Procdesc.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>return true if we should compute a summary for the procedure. if this returns false, we won't analyze the procedure or report any warnings on it. note: in the future, we will want to analyze the procedures in all of these cases in order to find more bugs. this is just a temporary measure to avoid obvious false positives</p></dd></dl><dl><dt class="spec value" id="val-get_current_class_and_threadsafe_superclasses"><a href="#val-get_current_class_and_threadsafe_superclasses" class="anchor"></a><code><span class="keyword">val</span> get_current_class_and_threadsafe_superclasses : <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> <span><span>(<a href="../../InferIR/InferIR/Typ/index.html#type-name">InferIR.Typ.name</a> * <span><a href="../../InferIR/InferIR/Typ/index.html#type-name">InferIR.Typ.name</a> list</span>)</span> option</span></code></dt><dt class="spec value" id="val-is_thread_safe_method"><a href="#val-is_thread_safe_method" class="anchor"></a><code><span class="keyword">val</span> is_thread_safe_method : <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>returns true if method or overriden method in superclass is @ThreadSafe, @ThreadSafe(enableChecks = true), or is defined as an alias of @ThreadSafe in a .inferconfig file.</p></dd></dl><dl><dt class="spec value" id="val-is_marked_thread_safe"><a href="#val-is_marked_thread_safe" class="anchor"></a><code><span class="keyword">val</span> is_marked_thread_safe : <a href="../../InferIR/InferIR/Procdesc/index.html#type-t">InferIR.Procdesc.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_safe_access"><a href="#val-is_safe_access" class="anchor"></a><code><span class="keyword">val</span> is_safe_access : <a href="../../InferIR/InferIR/AccessPath/index.html#type-access">InferIR.AccessPath.access</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/AccessPath/index.html#type-t">InferIR.AccessPath.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>check if an access to a field is thread-confined, or whether the field is volatile</p></dd></dl><dl><dt class="spec value" id="val-should_flag_interface_call"><a href="#val-should_flag_interface_call" class="anchor"></a><code><span class="keyword">val</span> should_flag_interface_call : <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> <span><a href="../../InferIR/InferIR/HilExp/index.html#type-t">InferIR.HilExp.t</a> list</span> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/CallFlags/index.html#type-t">InferIR.CallFlags.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>should an interface call be flagged as potentially non-thread safe?</p></dd></dl><dl><dt class="spec value" id="val-is_synchronized_container"><a href="#val-is_synchronized_container" class="anchor"></a><code><span class="keyword">val</span> is_synchronized_container : <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/AccessPath/index.html#type-t">InferIR.AccessPath.t</a> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>is a call on an access path to a method of a synchronized container?</p></dd></dl></div></body></html>