|
systemc-clang 2.0.0
Parsing SystemC constructs
|
#include <hNode.h>


Public Member Functions | |
| newname_map_t (string prefix=lvar_prefix) | |
| void | add_entry (T declp, string old_name, hNodep hnp) |
| string | find_entry_newn (T declp, bool set_ref=false) |
| bool | is_referenced (T declp) |
| void | reset_referenced () |
| void | set_prefix (string prefix) |
| string | get_prefix () |
| bool | empty () |
| size_t | size () |
| void | clear () |
| void | print (llvm::raw_ostream &modelout=llvm::outs(), unsigned int indnt=2) |
| std::map< T, names_t >::iterator | begin () |
| std::map< T, names_t >::iterator | end () |
| void | insertall (newname_map_t< T > newmap) |
Private Attributes | |
| name_serve | ns |
| std::map< T, names_t > | hdecl_name_map |
The newname_map_t class manages identifier names. For adding an entry, the identifier information is stored in a map with the clang AST node pointer as key. A new name for identifier is
generated, and {original name, new name, hNode pointer} are stored as the value. Additionally, the hNode of the identifier is updated to the new name. The find entry method returns the new name or empty string.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |