Go to the documentation of this file.
12 #ifndef CPROVER_CPP_CPP_LANGUAGE_H
13 #define CPROVER_CPP_CPP_LANGUAGE_H
34 std::istream &instream,
35 const std::string &path,
36 std::ostream &outstream)
override;
39 std::istream &instream,
40 const std::string &path)
override;
51 const std::string &module,
79 const std::string &code,
80 const std::string &module,
85 {
return util_make_unique<cpp_languaget>(); }
87 std::string
id()
const override {
return "cpp"; }
89 std::set<std::string>
extensions()
const override;
109 #endif // CPROVER_CPP_CPP_LANGUAGE_H
std::unique_ptr< languaget > new_language() override
bool generate_support_functions(symbol_tablet &symbol_table) override
Create language-specific support functions, such as __CPROVER_start, __CPROVER_initialize and languag...
The type of an expression, extends irept.
std::string main_symbol()
void show_parse(std::ostream &out) override
void set_language_options(const optionst &options) override
Set language-specific options.
bool preprocess(std::istream &instream, const std::string &path, std::ostream &outstream) override
ANSI-C preprocessing.
Base class for all expressions.
bool to_expr(const std::string &code, const std::string &module, exprt &expr, const namespacet &ns) override
Parses the given string into an expression.
std::string description() const override
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
void modules_provided(std::set< std::string > &modules) override
std::unique_ptr< languaget > new_cpp_language()
bool from_type(const typet &type, std::string &code, const namespacet &ns) override
Formats the given type in a language-specific way.
bool typecheck(symbol_tablet &symbol_table, const std::string &module) override
void set(const optionst &)
Assigns the parameters from given options.
std::string id() const override
bool parse(std::istream &instream, const std::string &path) override
cpp_parse_treet cpp_parse_tree
bool type_to_name(const typet &type, std::string &name, const namespacet &ns) override
Encodes the given type in a language-specific way.
bool merge_symbol_table(symbol_tablet &dest, symbol_tablet &src, const std::string &module, class replace_symbolt &replace_symbol) const
c_object_factory_parameterst object_factory_params
bool from_expr(const exprt &expr, std::string &code, const namespacet &ns) override
Formats the given expression in a language-specific way.
std::set< std::string > extensions() const override
Replace a symbol expression by a given expression.
~cpp_languaget() override