Skip to content

Register the json_symtab languauge in symtab2gb #6175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/symtab2gb/module_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
util
json-symtab-language
langapi
goto-programs
2 changes: 2 additions & 0 deletions src/symtab2gb/symtab2gb_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Author: Diffblue Ltd.
#include <goto-programs/link_goto_model.h>
#include <goto-programs/write_goto_binary.h>
#include <json-symtab-language/json_symtab_language.h>
#include <langapi/mode.h>

#include <util/config.h>
#include <util/exception_utils.h>
Expand Down Expand Up @@ -111,6 +112,7 @@ int symtab2gb_parse_optionst::doit()
{
gb_filename = cmdline.get_value(SYMTAB2GB_OUT_FILE_OPT);
}
register_language(new_json_symtab_language);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing build note: symtab2gb_parse_options.cpp:114:3: error: ‘register_language’ was not declared in this scope

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops. Should be fixed now.

config.set(cmdline);
run_symtab2gb(symtab_filenames, gb_filename);
return CPROVER_EXIT_SUCCESS;
Expand Down