[Lldb-commits] [clang] [lldb] [BoundsSafety] Introduce LateParsedAttrType AST placeholder type (PR #204125)
Eli Friedman via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 19 13:04:22 PDT 2026
================
@@ -3751,6 +3754,17 @@ QualType ASTContext::getCountAttributedType(
return QualType(CATy, 0);
}
+QualType ASTContext::getLateParsedAttrType(
+ QualType WrappedTy, LateParsedTypeAttribute *LateParsedAttr) const {
+ QualType CanonTy = getCanonicalType(WrappedTy);
+
+ auto *LPATy = new (*this, alignof(LateParsedAttrType))
+ LateParsedAttrType(WrappedTy, CanonTy, LateParsedAttr);
----------------
efriedma-quic wrote:
What's the canonical type for a LateParsedAttrType? It looks like it's the the underlying type, which seems like a problem to me. If there are attributes which can modify the type, but aren't resolved yet, we can't safely query anything about the type; we don't want to accidentally throw the existence of such attributes.
https://github.com/llvm/llvm-project/pull/204125
More information about the lldb-commits
mailing list