================
@@ -420,7 +425,13 @@ clang::DeclContext 
*PdbAstBuilder::GetParentDeclContext(PdbSymUid uid) {
   return FromCompilerDeclContext(GetTranslationUnitDecl());
 }
 
-bool PdbAstBuilder::CompleteType(clang::QualType qt) {
+CompilerDeclContext PdbAstBuilder::GetParentDeclContext(PdbSymUid uid) {
+  return m_clang.CreateDeclContext(GetParentClangDeclContext(uid));
+}
+
+bool PdbAstBuilder::CompleteType(CompilerType ct) {
+  clang::QualType qt =
+      clang::QualType::getFromOpaquePtr(ct.GetOpaqueQualType());
----------------
Nerixyz wrote:

Could you add a `PdbAstBuilder::FromCompilerType`? We already have the 
`FromCompilerDeclContext` and `FromCompilerDecl`. This could also use 
`ClangUtil::GetQualType`, which additionally checks that the type system of 
`ct` is `TypeSystemClang`.

https://github.com/llvm/llvm-project/pull/173111
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to