Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frama Clang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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 Clang
Commits
4ad4ef84
Commit
4ad4ef84
authored
3 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[options] better option for having reparseable code
hide -kernel-msg-key behind a proper FCLang option
parent
268dec55
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
frama_Clang_option.ml
+5
-0
5 additions, 0 deletions
frama_Clang_option.ml
tests/basic/printer.cpp
+1
-1
1 addition, 1 deletion
tests/basic/printer.cpp
with
6 additions
and
1 deletion
frama_Clang_option.ml
+
5
−
0
View file @
4ad4ef84
...
@@ -142,6 +142,11 @@ module ParseableOutput =
...
@@ -142,6 +142,11 @@ module ParseableOutput =
let
option_name
=
"-cxx-parseable-output"
let
option_name
=
"-cxx-parseable-output"
let
help
=
"set up Frama-C pretty-printer to output C code that can be reparsed by Frama-C"
let
help
=
"set up Frama-C pretty-printer to output C code that can be reparsed by Frama-C"
end
)
end
)
let
()
=
ParseableOutput
.
add_set_hook
(
fun
_
f
->
let
k
=
Kernel
.
dkey_print_attrs
in
if
f
then
Kernel
.
add_debug_keys
k
else
Kernel
.
del_debug_keys
k
)
module
C_std_headers
=
module
C_std_headers
=
String
(
String
(
...
...
This diff is collapsed.
Click to expand it.
tests/basic/printer.cpp
+
1
−
1
View file @
4ad4ef84
/* run.config
/* run.config
NOFRAMAC:
NOFRAMAC:
EXECNOW: LOG printer.res.c @frama-c@ @PTEST_FILE@ @CXX@ @MACHDEP@ -cxx-unmangling none -
kernel-msg-key printer:attrs
-ocode @PTEST_RESULT@/printer.res.c -print
EXECNOW: LOG printer.res.c @frama-c@ @PTEST_FILE@ @CXX@ @MACHDEP@ -cxx-unmangling none -
cxx-parseable-output
-ocode @PTEST_RESULT@/printer.res.c -print
EXECNOW: LOG printer.res2.c @frama-c@ @CXX@ @MACHDEP@ -cxx-unmangling without-qualifier @PTEST_RESULT@/printer.res.c -ocode @PTEST_RESULT@/printer.res2.c -print
EXECNOW: LOG printer.res2.c @frama-c@ @CXX@ @MACHDEP@ -cxx-unmangling without-qualifier @PTEST_RESULT@/printer.res.c -ocode @PTEST_RESULT@/printer.res2.c -print
*/
*/
...
...
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