[clang] [llvm] [HLSL] Implement '__builtin_hlsl_is_intangible' type trait (PR #104544)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 4 07:04:25 PDT 2024


================
@@ -249,4 +249,8 @@ FIELD(HasDeclaredCopyAssignmentWithConstParam, 1, MERGE_OR)
 /// base classes or fields have a no-return destructor
 FIELD(IsAnyDestructorNoReturn, 1, NO_MERGE)
 
+/// Whether the record type is intangible (if any base classes or fields have
+/// type that is intangible). HLSL only.
+FIELD(IsIntangible, 1, NO_MERGE)
----------------
llvm-beanz wrote:

nit: It is probably worth naming this `IsHLSLIntagible` just to clarify this is a language-specific trait.

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


More information about the cfe-commits mailing list