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
177f3631
Commit
177f3631
authored
1 year ago
by
Sébastien Patte
Committed by
Allan Blanchard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[Variadic] Improve warning message about intmax_t and fix issue with %lc
parent
710db21d
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/plugins/variadic/format_typer.ml
+1
-1
1 addition, 1 deletion
src/plugins/variadic/format_typer.ml
src/plugins/variadic/standard.ml
+3
-3
3 additions, 3 deletions
src/plugins/variadic/standard.ml
with
4 additions
and
4 deletions
src/plugins/variadic/format_typer.ml
+
1
−
1
View file @
177f3631
...
@@ -65,7 +65,7 @@ let type_f_specifier ?find_typedef spec =
...
@@ -65,7 +65,7 @@ let type_f_specifier ?find_typedef spec =
|
#
float_specifier
,
Some
`l
->
Cil
.
doubleType
|
#
float_specifier
,
Some
`l
->
Cil
.
doubleType
|
#
float_specifier
,
Some
`L
->
Cil
.
longDoubleType
|
#
float_specifier
,
Some
`L
->
Cil
.
longDoubleType
|
`c
,
None
->
Cil
.
intType
|
`c
,
None
->
Cil
.
intType
|
`c
,
Some
`l
->
get_typedef
?
find_typedef
"
intmax
_t"
|
`c
,
Some
`l
->
get_typedef
?
find_typedef
"
wchar
_t"
|
`s
,
None
->
Cil
.
charPtrType
|
`s
,
None
->
Cil
.
charPtrType
|
`s
,
Some
`l
->
ptr
(
get_typedef
?
find_typedef
"wchar_t"
)
|
`s
,
Some
`l
->
ptr
(
get_typedef
?
find_typedef
"wchar_t"
)
|
`p
,
None
->
Cil
.
voidPtrType
|
`p
,
None
->
Cil
.
voidPtrType
...
...
This diff is collapsed.
Click to expand it.
src/plugins/variadic/standard.ml
+
3
−
3
View file @
177f3631
...
@@ -731,13 +731,13 @@ let format_fun_call ~builder env format_fun vf args =
...
@@ -731,13 +731,13 @@ let format_fun_call ~builder env format_fun vf args =
let
tvparams
=
let
tvparams
=
try
try
Format_typer
.
type_format
~
find_typedef
format
Format_typer
.
type_format
~
find_typedef
format
with
Format_typer
.
Type_not_found
type_name
->
with
Format_typer
.
Type_not_found
(
type_name
)
->
Self
.
warning
~
current
:
true
Self
.
warning
~
current
:
true
"Unable to find type %s in the source code which should be used in \
"Unable to find type %s in the source code which should be used in \
this call:@ no specification will be generated.@ \
this call:@ no specification will be generated.@ \
Note that due to cleanup, the type may have been defined in the \
Note that due to cleanup, the type may have been defined in the \
original code but not used anywhere.
"
original code but not used anywhere.
@.\
type_name
;
Did you include <stdint.h> ?"
type_name
;
raise
(
Translate_call_exn
vf
.
vf_decl
)
raise
(
Translate_call_exn
vf
.
vf_decl
)
in
in
...
...
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