We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fddb9f commit c65b95aCopy full SHA for c65b95a
1 file changed
cpp2rust/converter/converter.cpp
@@ -63,18 +63,18 @@ bool Converter::VisitRecoveryExpr(clang::RecoveryExpr *expr) {
63
}
64
65
bool Converter::Convert(clang::QualType qual_type) {
66
- if (Mapper::Contains(qual_type) &&
67
- Mapper::Map(qual_type) != ignore_rule_type_) {
68
- StrCat(Mapper::Map(qual_type));
69
- return false;
70
- }
71
-
72
// Catch va_list before desugaring
73
if (IsVaListType(qual_type)) {
74
StrCat("VaList");
75
return false;
76
77
+ if (Mapper::Contains(qual_type) &&
+ Mapper::Map(qual_type) != ignore_rule_type_) {
+ StrCat(Mapper::Map(qual_type));
+ return false;
+ }
+
78
qual_type = qual_type.getUnqualifiedType().getDesugaredType(ctx_);
79
return TraverseType(qual_type);
80
0 commit comments