From d0e2fd7fd82f721fee2f94a5629af15d85bb1f55 Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sun, 2 Mar 2025 22:07:53 +0100 Subject: [PATCH] debug --- src/pygccxml/parser/project_reader.py | 4 ++++ src/pygccxml/parser/scanner.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pygccxml/parser/project_reader.py b/src/pygccxml/parser/project_reader.py index b37d8665..e02e5424 100644 --- a/src/pygccxml/parser/project_reader.py +++ b/src/pygccxml/parser/project_reader.py @@ -419,7 +419,11 @@ def read_xml(self, file_configuration): @staticmethod def _join_top_namespaces(main_ns_list, other_ns_list): answer = main_ns_list[:] + for n in main_ns_list: + print("_join_top_namespaces", n, n.name) + print("--------------") for other_ns in other_ns_list: + print("_join_top_namespaces", other_ns, other_ns.name) main_ns = pygccxml.declarations.find_declaration( answer, decl_type=pygccxml.declarations.namespace_t, diff --git a/src/pygccxml/parser/scanner.py b/src/pygccxml/parser/scanner.py index f5b73473..4768a23c 100644 --- a/src/pygccxml/parser/scanner.py +++ b/src/pygccxml/parser/scanner.py @@ -209,8 +209,8 @@ def __init__(self, xml_file, decl_factory, config, *args): self.__xml_generator_from_xml_file = None - with open(self.xml_file, "r") as f: - print(f.read()) + # with open(self.xml_file, "r") as f: + # print(f.read()) @property def xml_generator_from_xml_file(self):