[clang] [HLSL][NFC] Move IsIntangibleType from SemaHLSL to Type to make it accessible outside of Sema (PR #113206)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 12:08:38 PDT 2024


================
@@ -5030,6 +5030,29 @@ bool Type::hasSizedVLAType() const {
   return false;
 }
 
+bool Type::isHLSLIntangibleType() const {
+  const Type *Ty = getUnqualifiedDesugaredType();
+
+  // check if it's a builtin type first (simple check, no need to cache it)
----------------
hekota wrote:

I've updated the comment.

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


More information about the cfe-commits mailing list