Skip to content

Commit b2a6c69

Browse files
committed
CHB: add diagnostics
1 parent cbb1c98 commit b2a6c69

11 files changed

Lines changed: 748 additions & 414 deletions

CodeHawk/CHB/bchlib/bCHBCTypeUtil.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ let is_float_double t = match t with TFloat (FDouble, _, _) -> true | _ -> false
229229

230230
let is_pointer t = match t with TPtr _ -> true | _ -> false
231231

232+
let is_char_pointer t = match t with TPtr (TInt (IChar, _), _) -> true | _ -> false
233+
232234
let is_void_pointer t = match t with TPtr (TVoid _, _) -> true | _ -> false
233235

234236
let is_scalar t = (is_int t) || (is_float t) || (is_pointer t)

CodeHawk/CHB/bchlib/bCHBCTypeUtil.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ val is_float_float: btype_t -> bool
147147
val is_float_double: btype_t -> bool
148148
val is_scalar: btype_t -> bool
149149
val is_pointer: btype_t -> bool
150+
val is_char_pointer: btype_t -> bool
150151
val is_void_pointer: btype_t -> bool
151152
val is_unsigned: btype_t -> bool (* true if unsigned, false if signed or unknown *)
152153
val is_function_type: btype_t -> bool

0 commit comments

Comments
 (0)