i965g: Don't dump pads or dwords aliases.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -40,6 +40,7 @@ copyright = '''
|
||||
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
|
||||
from pygccxml import parser
|
||||
from pygccxml import declarations
|
||||
@@ -53,6 +54,11 @@ from pygccxml.declarations import type_visitor
|
||||
enums = True
|
||||
|
||||
|
||||
def vars_filter(variable):
|
||||
name = variable.name
|
||||
return not re.match('^pad\d*', name) and name != 'dword'
|
||||
|
||||
|
||||
class decl_dumper_t(decl_visitor.decl_visitor_t):
|
||||
|
||||
def __init__(self, stream, instance = '', decl = None):
|
||||
@@ -69,7 +75,8 @@ class decl_dumper_t(decl_visitor.decl_visitor_t):
|
||||
assert self.decl.class_type in ('struct', 'union')
|
||||
|
||||
for variable in class_.variables(recursive = False):
|
||||
dump_type(self.stream, self._instance + '.' + variable.name, variable.type)
|
||||
if vars_filter(variable):
|
||||
dump_type(self.stream, self._instance + '.' + variable.name, variable.type)
|
||||
|
||||
def visit_enumeration(self):
|
||||
if enums:
|
||||
|
||||
Reference in New Issue
Block a user