We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d5ec33 commit 3266e4dCopy full SHA for 3266e4d
src/common/util/checks.ml
@@ -40,7 +40,7 @@ module Category = struct
40
| DoubleFree
41
| NegativeArraySize
42
| StubCondition
43
- [@@deriving hash, eq, show]
+ [@@deriving hash, eq]
44
45
let to_yojson x = `String (match x with
46
| AssertionFailure -> "Assertion failure"
@@ -102,12 +102,7 @@ module Check = struct
102
(Format.pp_print_option CilType.Location.pp) check.range
103
end
104
105
-module CheckMap = Hashtbl.Make (struct
106
- type t = Check.t
107
- let equal = Check.equal
108
- let hash = Check.hash
109
- end)
110
-
+module CheckMap = Hashtbl.Make (Check)
111
112
module CategoryLocationMap = Hashtbl.Make (struct
113
type t = Category.t * CilType.Location.t [@@deriving hash, eq]
0 commit comments