[Lldb-commits] [clang] [lldb] [HLSL] Implement intangible AST type (PR #97362)

Helena Kotas via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 26 14:27:33 PDT 2024


================
@@ -8001,6 +8001,12 @@ NamedDecl *Sema::ActOnVariableDeclarator(
     }
   }
 
+  if (getLangOpts().HLSL) {
+    if (R->isHLSLSpecificType() && !NewVD->isImplicit()) {
+      Diag(D.getBeginLoc(), diag::err_hlsl_intangible_type_cannot_be_declared);
----------------
hekota wrote:

Got it, I thought `isImplicit()` also means declarations from implicit headers.

If we want to use these in `hlsl.h` then I don't think they can be truly sizeless. Sizeless types does not seem to be allowed in struct fields.

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


More information about the lldb-commits mailing list