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
b1db6c8b
Commit
b1db6c8b
authored
1 year ago
by
Allan Blanchard
Committed by
Pierre Nigron
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[kernel/doc] Use @raise for some functions
parent
1642570d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kernel_services/ast_queries/cil.mli
+17
-10
17 additions, 10 deletions
src/kernel_services/ast_queries/cil.mli
with
17 additions
and
10 deletions
src/kernel_services/ast_queries/cil.mli
+
17
−
10
View file @
b1db6c8b
...
...
@@ -722,20 +722,26 @@ type combineFunction =
typeinfo
->
typeinfo
->
typeinfo
;
}
(** [combineTypesGen combF combW oldt newt] combine [oldt] and
[newt] accordingly to [combF].
Warning : this is not commutative.
Indeed, excluding enum, struct/union and typedef which depend on [combF],
the resulting type is as close as possible to [newt].
If the types cannot be combined, it throws [Cannot_combine] with an
explication.
(** [combineTypesGen combF combW oldt newt]
Combine [oldt] and [newt] accordingly to [combF], [combW] indicates what we
are combinining.
Warning : this is not commutative. Indeed, excluding enum, struct/union and
typedef which depend on [combF], the resulting type is as close as possible
to [newt].
[strictInteger] is [true] (default) if two integers with same size and sign
but with different types cannot be combined.
A warning is sent if [false] and the compatibility is machine-dependent.
but with different types cannot be combined. A warning is sent if it is
[false] and the compatibility is machine-dependent.
[strictReturnTypes] is [false] (default) if a non-void type is compatible
with void in a return case.
Notice that the [~emitwith] action is called iff a warning is logged.
@raise Cannot_combine with an explanation when the type cannot be
combined.
@since Frama-C+dev
*)
val
combineTypesGen
:
?
emitwith
:
(
Log
.
event
->
unit
)
->
combineFunction
->
...
...
@@ -780,7 +786,8 @@ val areCompatibleTypes :
(** Same as [areCompatibleTypes old newt] but combine [oldt] and [newt].
[context] does not impact the qualifiers of the result.
Raise [Cannot_combine] if [oldt] and [newt] are not compatible.
@raise Cannot_combine if [oldt] and [newt] are not compatible.
@since Frama-C+dev
*)
...
...
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