Skip to content
Snippets Groups Projects
Commit ac9d1561 authored by Yaelle Vincont's avatar Yaelle Vincont Committed by Julien Signoles
Browse files

[filepath] add is_unknown function

parent 8a9f9c4a
No related branches found
No related tags found
No related merge requests found
...@@ -224,6 +224,7 @@ module Normalized = struct ...@@ -224,6 +224,7 @@ module Normalized = struct
let pretty fmt p = Format.fprintf fmt "%s" (pretty p) let pretty fmt p = Format.fprintf fmt "%s" (pretty p)
let pp_abs fmt p = Format.fprintf fmt "%s" p let pp_abs fmt p = Format.fprintf fmt "%s" p
let unknown = normalize "" let unknown = normalize ""
let is_unknown fp = equal fp unknown
end end
type position = type position =
......
...@@ -120,6 +120,9 @@ module Normalized: sig ...@@ -120,6 +120,9 @@ module Normalized: sig
(** Unknown filepath, used as 'dummy' for [Datatype.Filepath]. *) (** Unknown filepath, used as 'dummy' for [Datatype.Filepath]. *)
val unknown: t val unknown: t
(** @since Frama-C+dev *)
val is_unknown: t -> bool
end end
(** Describes a position in a source file. (** Describes a position in a source file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment