Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
frama-c
Commits
b1ecbcfb
Commit
b1ecbcfb
authored
Oct 09, 2020
by
Basile Desloges
Browse files
[eacsl] Variadic translation is incompatible with `-e-acsl-validate-format-string`
parent
ba25aa73
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/e-acsl/src/main.ml
View file @
b1ecbcfb
...
...
@@ -42,12 +42,14 @@ let generate_code =
Temporal
.
enable
(
Options
.
Temporal_validity
.
get
()
);
if
Plugin
.
is_present
"variadic"
then
begin
let
opt_name
=
"-variadic-translation"
in
if
Dynamic
.
Parameter
.
Bool
.
get
opt_name
()
then
begin
if
Dynamic
.
Parameter
.
Bool
.
get
opt_name
()
&&
Options
.
Validate_format_strings
.
get
()
then
begin
if
Ast
.
is_computed
()
then
Options
.
abort
"The variadic translation must be turned off for E-ACSL. \
Please use option '-variadic-no-translation'"
;
Options
.
warning
"deactivating variadic translation"
;
"The variadic translation is incompatible with E-ACSL option \
'%s'.@ Please use option '-variadic-no-translation'."
Options
.
Validate_format_strings
.
option_name
Options
.
warning
"deactivating variadic translation"
;
Dynamic
.
Parameter
.
Bool
.
off
opt_name
()
;
end
end
;
...
...
src/plugins/e-acsl/tests/format/test_config_ci
View file @
b1ecbcfb
STDOPT: #"-e-acsl-validate-format-strings"
STDOPT: #"
-variadic-no-translation
-e-acsl-validate-format-strings"
src/plugins/e-acsl/tests/format/test_config_dev
View file @
b1ecbcfb
MACRO: ROOT_EACSL_GCC_OPTS_EXT --validate-format-strings --full-mtracking
MACRO: ROOT_EACSL_GCC_OPTS_EXT --validate-format-strings --full-mtracking
-F -variadic-no-translation
MACRO: ROOT_EACSL_EXEC_FILTER @SEDCMD@ -e "s|/.*/share/e-acsl|FRAMAC_SHARE/e-acsl|"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment