From f3e26754c4b63fee419407752b771ecf0bb8ed5a Mon Sep 17 00:00:00 2001 From: Xuanda Yang Date: Wed, 10 Sep 2025 15:55:00 -0700 Subject: Add FindModifier for Declarations (#8308) Add `findModifier` for `DeclReflection` so pattern like `extern struct foo;` can be properly reflected. Closes #8009 --- include/slang-deprecated.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/slang-deprecated.h') diff --git a/include/slang-deprecated.h b/include/slang-deprecated.h index c81ae8537..026845888 100644 --- a/include/slang-deprecated.h +++ b/include/slang-deprecated.h @@ -750,6 +750,9 @@ extern "C" SLANG_API SlangReflectionGeneric* spReflectionDecl_castToGeneric(SlangReflectionDecl* decl); SLANG_API SlangReflectionType* spReflection_getTypeFromDecl(SlangReflectionDecl* decl); SLANG_API SlangReflectionDecl* spReflectionDecl_getParent(SlangReflectionDecl* decl); + SLANG_API SlangReflectionModifier* spReflectionDecl_findModifier( + SlangReflectionDecl* decl, + SlangModifierID modifierID); // Generic Reflection -- cgit v1.2.3