@@ -321,21 +321,21 @@ def __parse_file_by_file(self, files):
321
321
self .logger .debug (
322
322
"Cache has been flushed in %.1f secs" ,
323
323
(timeit .default_timer () - start_time ))
324
- answer = []
324
+ namespaces = []
325
325
self .logger .debug ("Joining namespaces ..." )
326
326
for file_nss in namespaces :
327
- answer = self ._join_top_namespaces (answer , file_nss )
327
+ namespaces = self ._join_top_namespaces (namespaces , file_nss )
328
328
self .logger .debug ("Joining declarations ..." )
329
- for ns in answer :
330
- if isinstance (ns , pygccxml .declarations .namespace_t ):
331
- declarations_joiner .join_declarations (ns )
332
- leaved_classes = self ._join_class_hierarchy (answer )
333
- types = self .__declarated_types (answer )
329
+ for namespace in namespaces :
330
+ if isinstance (namespace , pygccxml .declarations .namespace_t ):
331
+ declarations_joiner .join_declarations (namespace )
332
+ leaved_classes = self ._join_class_hierarchy (namespaces )
333
+ types = self .__declarated_types (namespaces )
334
334
self .logger .debug ("Relinking declared types ..." )
335
335
self ._relink_declarated_types (leaved_classes , types )
336
336
declarations_joiner .bind_aliases (
337
- pygccxml .declarations .make_flatten (answer ))
338
- return answer
337
+ pygccxml .declarations .make_flatten (namespaces ))
338
+ return namespaces
339
339
340
340
def __parse_all_at_once (self , files ):
341
341
config = self .__config .clone ()
@@ -353,12 +353,12 @@ def __parse_all_at_once(self, files):
353
353
header_content .append (
354
354
'#include "%s" %s' %
355
355
(header , os .linesep ))
356
- declarations = self .read_string ('' .join (header_content ))
357
- declarations = self ._join_top_namespaces (declarations , [])
358
- for ns in declarations :
359
- if isinstance (ns , pygccxml .declarations .namespace_t ):
360
- declarations_joiner .join_declarations (ns )
361
- return declarations
356
+ namespaces = self .read_string ('' .join (header_content ))
357
+ namespaces = self ._join_top_namespaces (namespaces , [])
358
+ for namespace in namespaces :
359
+ if isinstance (namespace , pygccxml .declarations .namespace_t ):
360
+ declarations_joiner .join_declarations (namespace )
361
+ return namespaces
362
362
363
363
def read_string (self , content ):
364
364
"""Parse a string containing C/C++ source code.
0 commit comments