#include <source_location.h>
Public Member Functions |
| | source_locationt () |
| |
| std::string | as_string () const |
| |
| std::string | as_string_with_cwd () const |
| |
| const irep_idt & | get_file () const |
| |
| const irep_idt & | get_working_directory () const |
| |
| const irep_idt & | get_line () const |
| |
| const irep_idt & | get_column () const |
| |
| const irep_idt & | get_function () const |
| |
| const irep_idt & | get_property_id () const |
| |
| const irep_idt & | get_property_class () const |
| |
| const irep_idt & | get_comment () const |
| |
| const irep_idt & | get_case_number () const |
| |
| const irep_idt & | get_java_bytecode_index () const |
| |
| const irept & | get_basic_block_source_lines () const |
| |
| bool | property_fatal () const |
| |
| void | set_file (const irep_idt &file) |
| |
| void | set_working_directory (const irep_idt &cwd) |
| |
| void | set_line (const irep_idt &line) |
| |
| void | set_line (unsigned line) |
| |
| void | set_column (const irep_idt &column) |
| |
| void | set_column (unsigned column) |
| |
| void | set_function (const irep_idt &function) |
| |
| void | clear_function () |
| |
| void | set_property_id (const irep_idt &property_id) |
| |
| void | set_property_class (const irep_idt &property_class) |
| |
| void | set_comment (const irep_idt &comment) |
| |
| void | set_case_number (const irep_idt &number) |
| |
| void | set_java_bytecode_index (const irep_idt &index) |
| |
| void | set_basic_block_source_lines (irept source_lines) |
| |
| void | property_fatal (bool _property_fatal) |
| |
| void | set_hide () |
| |
| bool | get_hide () const |
| |
| bool | is_built_in () const |
| |
| void | merge (const source_locationt &from) |
| | Set all unset source-location fields in this object to their values in 'from'.
|
| |
| std::optional< std::string > | full_path () const |
| | Get a path to the file, including working directory.
|
| |
| void | add_pragma (const irep_idt &pragma) |
| |
| const irept::named_subt & | get_pragmas () const |
| |
Public Member Functions inherited from irept |
| bool | is_nil () const |
| |
| bool | is_not_nil () const |
| |
| | irept (const irep_idt &_id) |
| |
| | irept (const irep_idt &_id, const named_subt &_named_sub, const subt &_sub) |
| |
| | irept ()=default |
| |
| const irep_idt & | id () const |
| |
| const std::string & | id_string () const |
| |
| void | id (const irep_idt &_data) |
| |
| const irept & | find (const irep_idt &name) const |
| |
| irept & | add (const irep_idt &name) |
| |
| irept & | add (const irep_idt &name, irept irep) |
| |
| const std::string & | get_string (const irep_idt &name) const |
| |
| const irep_idt & | get (const irep_idt &name) const |
| |
| bool | get_bool (const irep_idt &name) const |
| |
| signed int | get_int (const irep_idt &name) const |
| |
| std::size_t | get_size_t (const irep_idt &name) const |
| |
| long long | get_long_long (const irep_idt &name) const |
| |
| void | set (const irep_idt &name, const irep_idt &value) |
| |
| void | set (const irep_idt &name, irept irep) |
| |
| void | set (const irep_idt &name, const long long value) |
| |
| void | set_size_t (const irep_idt &name, const std::size_t value) |
| |
| void | remove (const irep_idt &name) |
| |
| void | move_to_sub (irept &irep) |
| |
| void | move_to_named_sub (const irep_idt &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
|
| |
| bool | ordering (const irept &other) const |
| | defines ordering on the internal representation
|
| |
| int | compare (const irept &i) const |
| | defines ordering on the internal representation comments are ignored
|
| |
| 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 |
| |
| 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 |
| |
Public Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > |
| | sharing_treet (irep_idt _id) |
| |
| | sharing_treet (irep_idt _id, named_subt _named_sub, subt _sub) |
| |
| | sharing_treet () |
| |
| | sharing_treet (const sharing_treet &irep) |
| |
| | sharing_treet (sharing_treet &&irep) |
| |
| sharing_treet & | operator= (const sharing_treet &irep) |
| |
| sharing_treet & | operator= (sharing_treet &&irep) |
| |
| | ~sharing_treet () |
| |
| const dt & | read () const |
| |
| dt & | write () |
| |
Additional Inherited Members |
Public Types inherited from irept |
| using | baset = tree_implementationt |
| |
Public Types inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > |
| using | dt = tree_nodet< irept, forward_list_as_mapt< irep_idt, irept >, true > |
| |
| using | subt = typename dt::subt |
| |
| using | named_subt = typename dt::named_subt |
| |
| using | tree_implementationt = sharing_treet |
| | Used to refer to this class from derived classes.
|
| |
Static Protected Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > |
| 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.
|
| |
Protected Attributes inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > |
| dt * | data |
| |
Static Protected Attributes inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > |
| static dt | empty_d |
| |
| source_locationt::source_locationt |
( |
| ) |
|
|
inline |
◆ add_pragma()
◆ as_string() [1/2]
| std::string source_locationt::as_string |
( |
| ) |
const |
|
inline |
◆ as_string() [2/2]
| std::string source_locationt::as_string |
( |
bool |
print_cwd | ) |
const |
|
protected |
- parameters: print_cwd, print the absolute path to the file
Definition at line 24 of file source_location.cpp.
◆ as_string_with_cwd()
| std::string source_locationt::as_string_with_cwd |
( |
| ) |
const |
|
inline |
◆ clear_function()
| void source_locationt::clear_function |
( |
| ) |
|
|
inline |
◆ full_path()
| std::optional< std::string > source_locationt::full_path |
( |
| ) |
const |
Get a path to the file, including working directory.
- Returns
- Full path unless the file name is empty or refers to a built-in, in which case {} is returned.
Definition at line 88 of file source_location.cpp.
◆ get_basic_block_source_lines()
| const irept & source_locationt::get_basic_block_source_lines |
( |
| ) |
const |
|
inline |
◆ get_case_number()
◆ get_column()
◆ get_comment()
◆ get_file()
◆ get_function()
◆ get_hide()
| bool source_locationt::get_hide |
( |
| ) |
const |
|
inline |
◆ get_java_bytecode_index()
| const irep_idt & source_locationt::get_java_bytecode_index |
( |
| ) |
const |
|
inline |
◆ get_line()
◆ get_pragmas()
◆ get_property_class()
◆ get_property_id()
◆ get_working_directory()
| const irep_idt & source_locationt::get_working_directory |
( |
| ) |
const |
|
inline |
◆ is_built_in() [1/2]
| bool source_locationt::is_built_in |
( |
| ) |
const |
|
inline |
◆ is_built_in() [2/2]
| bool source_locationt::is_built_in |
( |
const std::string & |
s | ) |
|
|
static |
◆ merge()
Set all unset source-location fields in this object to their values in 'from'.
Leave set fields in this object alone.
Definition at line 76 of file source_location.cpp.
◆ nil()
◆ property_fatal() [1/2]
| bool source_locationt::property_fatal |
( |
| ) |
const |
|
inline |
◆ property_fatal() [2/2]
| void source_locationt::property_fatal |
( |
bool |
_property_fatal | ) |
|
|
inline |
◆ set_basic_block_source_lines()
| void source_locationt::set_basic_block_source_lines |
( |
irept |
source_lines | ) |
|
|
inline |
◆ set_case_number()
◆ set_column() [1/2]
◆ set_column() [2/2]
◆ set_comment()
◆ set_file()
◆ set_function()
◆ set_hide()
| void source_locationt::set_hide |
( |
| ) |
|
|
inline |
◆ set_java_bytecode_index()
◆ set_line() [1/2]
◆ set_line() [2/2]
◆ set_property_class()
◆ set_property_id()
◆ set_working_directory()
The documentation for this class was generated from the following files: