cprover
|
#include <cpp_name.h>
Classes | |
class | namet |
Public Member Functions | |
cpp_namet () | |
cpp_namet (const irep_idt &base_name) | |
cpp_namet (const irep_idt &_base_name, const source_locationt &_source_location) | |
const source_locationt & | source_location () const |
irep_idt | get_base_name () const |
bool | is_simple_name () const |
bool | is_operator () const |
bool | is_typename () const |
bool | is_qualified () const |
bool | is_destructor () const |
bool | has_template_args () const |
std::string | to_string () const |
const exprt & | as_expr () const |
const typet & | as_type () const |
![]() | |
bool | is_nil () const |
bool | is_not_nil () const |
irept (const irep_idt &_id) | |
irept () | |
irept (const irept &irep) | |
irept (irept &&irep) | |
irept & | operator= (const irept &irep) |
irept & | operator= (irept &&irep) |
~irept () | |
const irep_idt & | id () const |
const std::string & | id_string () const |
void | id (const irep_idt &_data) |
const irept & | find (const irep_namet &name) const |
irept & | add (const irep_namet &name) |
irept & | add (const irep_namet &name, const irept &irep) |
const std::string & | get_string (const irep_namet &name) const |
const irep_idt & | get (const irep_namet &name) const |
bool | get_bool (const irep_namet &name) const |
signed int | get_int (const irep_namet &name) const |
unsigned int | get_unsigned_int (const irep_namet &name) const |
std::size_t | get_size_t (const irep_namet &name) const |
long long | get_long_long (const irep_namet &name) const |
void | set (const irep_namet &name, const irep_idt &value) |
void | set (const irep_namet &name, const irept &irep) |
void | set (const irep_namet &name, const long long value) |
void | remove (const irep_namet &name) |
void | move_to_sub (irept &irep) |
void | move_to_named_sub (const irep_namet &name, irept &irep) |
bool | operator== (const irept &other) const |
bool | operator!= (const irept &other) const |
void | swap (irept &irep) |
bool | operator< (const irept &other) const |
defines ordering on the internal representation More... | |
bool | ordering (const irept &other) const |
defines ordering on the internal representation More... | |
int | compare (const irept &i) const |
defines ordering on the internal representation More... | |
void | clear () |
void | make_nil () |
subt & | get_sub () |
const subt & | get_sub () const |
named_subt & | get_named_sub () |
const named_subt & | get_named_sub () const |
named_subt & | get_comments () |
const named_subt & | get_comments () const |
std::size_t | hash () const |
std::size_t | full_hash () const |
bool | full_eq (const irept &other) const |
std::string | pretty (unsigned indent=0, unsigned max_indent=0) const |
const dt & | read () const |
dt & | write () |
Additional Inherited Members | |
![]() | |
typedef std::vector< irept > | subt |
typedef std::map< irep_namet, irept > | named_subt |
![]() | |
void | detach () |
![]() | |
static bool | is_comment (const irep_namet &name) |
static void | remove_ref (dt *old_data) |
static void | nonrecursive_destructor (dt *old_data) |
Does the same as remove_ref, but using an explicit stack instead of recursion. More... | |
![]() | |
dt * | data |
![]() | |
static dt | empty_d |
Definition at line 15 of file cpp_name.h.
|
inline |
Definition at line 56 of file cpp_name.h.
|
inlineexplicit |
Definition at line 60 of file cpp_name.h.
References irept::get_sub(), and cpp_namet::namet::namet().
|
inline |
Definition at line 65 of file cpp_name.h.
References irept::get_sub(), and cpp_namet::namet::namet().
|
inline |
Definition at line 132 of file cpp_name.h.
|
inline |
Definition at line 137 of file cpp_name.h.
Referenced by copy_parent().
irep_idt cpp_namet::get_base_name | ( | ) | const |
Definition at line 17 of file cpp_name.cpp.
References convert(), forall_irep, irept::get_string(), irept::get_sub(), and irept::id_string().
Referenced by cpp_typecheckt::full_member_initialization(), cpp_convert_typet::read_function_type(), Parser::rFunctionBody(), source_location(), cpp_typecheckt::typecheck_class_template(), cpp_typecheckt::typecheck_compound_declarator(), cpp_typecheckt::typecheck_compound_type(), cpp_typecheckt::typecheck_enum_type(), and cpp_typecheckt::typecheck_function_template().
|
inline |
Definition at line 121 of file cpp_name.h.
References forall_irep, irept::get_sub(), and to_string().
Referenced by cpp_typecheckt::check_member_initializers(), cpp_typecheckt::convert_template_declaration(), cpp_typecheckt::full_member_initialization(), cpp_typecheck_resolvet::guess_template_args(), and cpp_typecheckt::typecheck_class_template_member().
|
inline |
Definition at line 116 of file cpp_name.h.
References irept::get_sub().
|
inline |
Definition at line 96 of file cpp_name.h.
References irept::get_sub().
Referenced by cpp_typecheckt::typecheck_compound_declarator().
|
inline |
Definition at line 108 of file cpp_name.h.
References forall_irep, and irept::get_sub().
Referenced by cpp_typecheckt::convert(), cpp_typecheckt::convert_template_declaration(), cpp_typecheckt::convert_template_function_or_member_specialization(), cpp_typecheck_resolvet::guess_template_args(), cpp_typecheck_resolvet::resolve(), cpp_typecheck_resolvet::resolve_namespace(), cpp_typecheckt::typecheck_class_template_member(), and cpp_typecheckt::typecheck_side_effect_function_call().
|
inline |
Definition at line 88 of file cpp_name.h.
References irept::get_sub().
Referenced by cpp_convert_typet::read_function_type(), cpp_typecheckt::typecheck_class_template(), cpp_typecheckt::typecheck_compound_declarator(), cpp_typecheckt::typecheck_compound_type(), cpp_typecheckt::typecheck_enum_type(), and cpp_typecheckt::typecheck_function_template().
|
inline |
Definition at line 103 of file cpp_name.h.
References irept::get_bool().
|
inline |
Definition at line 72 of file cpp_name.h.
References get_base_name(), get_nil_irep(), and irept::get_sub().
Referenced by cpp_declarator_convertert::convert(), cpp_typecheckt::convert(), cpp_declarator_convertert::convert_new_symbol(), cpp_typecheckt::convert_template_function_or_member_specialization(), cpp_convert_typet::read_function_type(), cpp_typecheck_resolvet::resolve(), cpp_typecheck_resolvet::resolve_namespace(), cpp_typecheck_resolvet::resolve_scope(), cpp_typecheckt::typecheck_class_template(), cpp_typecheckt::typecheck_class_template_member(), cpp_typecheckt::typecheck_compound_bases(), cpp_typecheckt::typecheck_compound_declarator(), cpp_typecheckt::typecheck_expr_cpp_name(), and cpp_typecheckt::typecheck_function_template().
std::string cpp_namet::to_string | ( | ) | const |
Definition at line 76 of file cpp_name.cpp.
References forall_irep, and irept::get_sub().
Referenced by has_template_args().