Loading...
Searching...
No Matches
fresh_symbol.cpp File Reference
Fresh auxiliary symbol creation.
More...
+ Include dependency graph for fresh_symbol.cpp:
Go to the source code of this file.
Installs a fresh-named symbol with respect to the given namespace ns with the requested name pattern in the given symbol table.
Installs a fresh-named symbol with the requested name pattern in the given symbol table.
Detailed Description
Function Documentation
◆ get_fresh_aux_symbol() [1/2]
const std::string &
name_prefix,
const std::string &
basename_prefix,
)
Installs a fresh-named symbol with respect to the given namespace ns with the requested name pattern in the given symbol table.
- Parameters
-
type The type of the new symbol.
name_prefix The new symbol will be named name_prefix::basename_prefix$num unless name_prefix is empty, in which case the :: prefix is omitted.
basename_prefix See name_prefix.
source_location The source location for the new symbol.
symbol_mode The mode for the new symbol, e.g. ID_C, ID_java.
ns the new symbol has a different name than any symbols in ns
symbol_table The symbol table to add the new symbol to.
- Returns
- The new symbol.
Definition at line 32 of file fresh_symbol.cpp.
◆ get_fresh_aux_symbol() [2/2]
const std::string &
name_prefix,
const std::string &
basename_prefix,
)
Installs a fresh-named symbol with the requested name pattern in the given symbol table.
- Parameters
-
type The type of the new symbol.
name_prefix The new symbol will be named name_prefix::basename_prefix$num unless name_prefix is empty, in which case the :: prefix is omitted.
basename_prefix See name_prefix.
source_location The source location for the new symbol.
symbol_mode The mode for the new symbol, e.g. ID_C, ID_java.
symbol_table The symbol table to add the new symbol to.
- Returns
- The new symbol.
Definition at line 71 of file fresh_symbol.cpp.