[clang] [lldb] [HLSL] Implement intangible AST type (PR #97362)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 24 14:51:22 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:
Yes, the intention was that these types can be created only in the implicit header `hlsl.h`. If that's not the case, I will remove this.
https://github.com/llvm/llvm-project/pull/97362
More information about the cfe-commits
mailing list