From f24389e3d88d3458b3a82fe4c3388e39b996bb72 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Thu, 17 Oct 2019 14:40:36 +0200
Subject: [PATCH] Filter SymbolTable output, removing C function symbols

This output is just for debugging purpose right now, it more convenient to just
print data file variables during this early development
---
 src/language/SymbolTable.hpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/language/SymbolTable.hpp b/src/language/SymbolTable.hpp
index 1039af0cd..328e200cb 100644
--- a/src/language/SymbolTable.hpp
+++ b/src/language/SymbolTable.hpp
@@ -171,7 +171,9 @@ class SymbolTable
   {
     os << "-- Symbol table state -- parent : " << symbol_table.m_parent_table.get() << "\n";
     for (auto i_symbol : symbol_table.m_symbol_list) {
-      os << ' ' << i_symbol.name() << ": " << std::boolalpha << i_symbol.attributes() << '\n';
+      if (i_symbol.attributes().dataType() != ASTNodeDataType::c_function_t) {
+        os << ' ' << i_symbol.name() << ": " << std::boolalpha << i_symbol.attributes() << '\n';
+      }
     }
     os << "------------------------\n";
     return os;
-- 
GitLab