Skip to content
Snippets Groups Projects

Fix a vicious bug in symbol table management

1 file
+ 9
6
Compare changes
  • Side-by-side
  • Inline
+ 9
6
@@ -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)
Loading