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
c6d7c388
Commit
c6d7c388
authored
5 years ago
by
Allan Blanchard
Committed by
Virgile Prevosto
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Kernel] Adds two warnings categories for ghost code
parent
d9fe6f74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/kernel_services/plugin_entry_points/kernel.ml
+6
-0
6 additions, 0 deletions
src/kernel_services/plugin_entry_points/kernel.ml
src/kernel_services/plugin_entry_points/kernel.mli
+6
-0
6 additions, 0 deletions
src/kernel_services/plugin_entry_points/kernel.mli
with
12 additions
and
0 deletions
src/kernel_services/plugin_entry_points/kernel.ml
+
6
−
0
View file @
c6d7c388
...
...
@@ -132,6 +132,12 @@ let dkey_visitor = register_category "visitor"
let
wkey_annot_error
=
register_warn_category
"annot-error"
let
()
=
set_warn_status
wkey_annot_error
Log
.
Wabort
let
wkey_ghost_bad_non_ghost
=
register_warn_category
"ghost:bad-non-ghost"
let
()
=
set_warn_status
wkey_ghost_bad_non_ghost
Log
.
Werror
let
wkey_ghost_bad_use
=
register_warn_category
"ghost:bad-use"
let
()
=
set_warn_status
wkey_ghost_bad_use
Log
.
Werror
let
wkey_acsl_float_compare
=
register_warn_category
"acsl-float-compare"
let
()
=
set_warn_status
wkey_acsl_float_compare
Log
.
Winactive
...
...
This diff is collapsed.
Click to expand it.
src/kernel_services/plugin_entry_points/kernel.mli
+
6
−
0
View file @
c6d7c388
...
...
@@ -130,6 +130,12 @@ val dkey_visitor: category
val
wkey_annot_error
:
warn_category
(** error in annotation. If only a warning, annotation will just be ignored. *)
val
wkey_ghost_bad_non_ghost
:
warn_category
(** error in non ghost code related to the use of ghost elements *)
val
wkey_ghost_bad_use
:
warn_category
(** error in ghost code *)
val
wkey_acsl_float_compare
:
warn_category
val
wkey_drop_unused
:
warn_category
...
...
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