File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,19 @@ void Ignore()
27
27
IsIgnored = true ;
28
28
}
29
29
30
+ public override bool VisitType ( Type type , TypeQualifiers quals )
31
+ {
32
+ TypeMap typeMap ;
33
+ if ( TypeMapDatabase . FindTypeMap ( type , out typeMap )
34
+ && typeMap . IsIgnored )
35
+ {
36
+ Ignore ( ) ;
37
+ return false ;
38
+ }
39
+
40
+ return base . VisitType ( type , quals ) ;
41
+ }
42
+
30
43
public override bool VisitPrimitiveType ( PrimitiveType type , TypeQualifiers quals )
31
44
{
32
45
// we do not support long double yet because its high-level representation is often problematic
@@ -46,6 +59,12 @@ public override bool VisitDeclaration(Declaration decl)
46
59
if ( decl . CompleteDeclaration != null )
47
60
return VisitDeclaration ( decl . CompleteDeclaration ) ;
48
61
62
+ TypeMap typeMap ;
63
+ if ( TypeMapDatabase . FindTypeMap ( decl , out typeMap ) )
64
+ {
65
+ return typeMap . IsIgnored ;
66
+ }
67
+
49
68
if ( ! ( decl is TypedefDecl ) && ! decl . IsGenerated )
50
69
{
51
70
Ignore ( ) ;
You can’t perform that action at this time.
0 commit comments