[clang] [clang][ASTImporter] support import return with UnaryTransformType (PR #101517)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 2 15:05:59 PDT 2024


================
@@ -3636,6 +3636,10 @@ class IsTypeDeclaredInsideVisitor
     return {};
   }
 
+  std::optional<bool> VisitUnaryTransformType(const UnaryTransformType *T) {
+    return CheckType(T->getBaseType());
----------------
mizvekov wrote:

Strictly speaking, you only need to visit the base type if the `UnaryTransformType` is not sugared, which currently is the same as being dependent.

Otherwise previous CheckType should have already stepped through it.

https://github.com/llvm/llvm-project/pull/101517


More information about the cfe-commits mailing list