Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
ac9d1561
Commit
ac9d1561
authored
5 years ago
by
Yaelle Vincont
Committed by
Julien Signoles
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[filepath] add is_unknown function
parent
8a9f9c4a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libraries/utils/filepath.ml
+1
-0
1 addition, 0 deletions
src/libraries/utils/filepath.ml
src/libraries/utils/filepath.mli
+3
-0
3 additions, 0 deletions
src/libraries/utils/filepath.mli
with
4 additions
and
0 deletions
src/libraries/utils/filepath.ml
+
1
−
0
View file @
ac9d1561
...
@@ -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
=
...
...
This diff is collapsed.
Click to expand it.
src/libraries/utils/filepath.mli
+
3
−
0
View file @
ac9d1561
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment