Skip to content
Snippets Groups Projects
Commit 4ad4ef84 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[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
...@@ -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(
......
/* 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
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment