Skip to content

Commit 0f0c3e3

Browse files
committed
added documentation to the check_list variable
1 parent d002355 commit 0f0c3e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common/util/checks.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ module CategoryLocationMap = Hashtbl.Make (struct
114114

115115

116116
let checks_list : (bool ref * unit CheckMap.t) CategoryLocationMap.t = CategoryLocationMap.create 113
117+
(** Store the list of checks raised by the analysis. The [bool ref] stores whether all checks in the map are safe.
118+
The [unit CheckMap.t] is the set of checks associated with the given [Category.t * CilType.Location.t] pair.
119+
The [bool] is a reference to avoid having to use the [update] function when updating the value. The [CheckMap.t] is mutable anyway
120+
so it is not a problem. *)
117121

118122
let add_check check =
119123
match check.Check.range with

0 commit comments

Comments
 (0)