| ... | ... | @@ -4926,6 +4926,22 @@ fn isAnyopaque(qt: clang.QualType) bool { |
| 4926 | 4926 | const typedef_decl = typedef_ty.getDecl(); |
| 4927 | 4927 | return isAnyopaque(typedef_decl.getUnderlyingType()); |
| 4928 | 4928 | }, |
| 4929 | .Elaborated => { |
| 4930 | const elaborated_ty = @ptrCast(*const clang.ElaboratedType, ty); |
| 4931 | return isAnyopaque(elaborated_ty.getNamedType().getCanonicalType()); |
| 4932 | }, |
| 4933 | .Decayed => { |
| 4934 | const decayed_ty = @ptrCast(*const clang.DecayedType, ty); |
| 4935 | return isAnyopaque(decayed_ty.getDecayedType().getCanonicalType()); |
| 4936 | }, |
| 4937 | .Attributed => { |
| 4938 | const attributed_ty = @ptrCast(*const clang.AttributedType, ty); |
| 4939 | return isAnyopaque(attributed_ty.getEquivalentType().getCanonicalType()); |
| 4940 | }, |
| 4941 | .MacroQualified => { |
| 4942 | const macroqualified_ty = @ptrCast(*const clang.MacroQualifiedType, ty); |
| 4943 | return isAnyopaque(macroqualified_ty.getModifiedType().getCanonicalType()); |
| 4944 | }, |
| 4929 | 4945 | else => return false, |
| 4930 | 4946 | } |
| 4931 | 4947 | } |