summaryrefslogtreecommitdiff
path: root/include/slang-deprecated.h
diff options
context:
space:
mode:
authorXuanda Yang <th3charlie@gmail.com>2025-09-10 15:55:00 -0700
committerGitHub <noreply@github.com>2025-09-10 22:55:00 +0000
commitf3e26754c4b63fee419407752b771ecf0bb8ed5a (patch)
tree15188e3e51b77e6027bba9d49c071c3d426012a9 /include/slang-deprecated.h
parentc5607e9d68e9082ada9441f1949937f6b16d5c7f (diff)
Add FindModifier for Declarations (#8308)
Add `findModifier` for `DeclReflection` so pattern like `extern struct foo;` can be properly reflected. Closes #8009
Diffstat (limited to 'include/slang-deprecated.h')
-rw-r--r--include/slang-deprecated.h3
1 files changed, 3 insertions, 0 deletions
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