Skip to content
Snippets Groups Projects
Commit 9d02bccb authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Merge branch 'issue/local-function-id' into 'develop'

Fix a vicious bug in symbol table management

See merge request !77
parents 150aadc1 cb888d72
No related branches found
No related tags found
1 merge request!77Fix a vicious bug in symbol table management
......@@ -267,6 +267,8 @@ class SymbolTable
clearValues()
{
for (auto& symbol : m_symbol_list) {
// local functions must kept their values (id)
if (symbol.attributes().dataType() != ASTNodeDataType::function_t) {
std::visit(
[](auto&& value) {
using T = std::decay_t<decltype(value)>;
......@@ -275,6 +277,7 @@ class SymbolTable
symbol.attributes().value());
}
}
}
auto
find(const std::string& symbol, const TAO_PEGTL_NAMESPACE::position& use_position)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment