From 7a133445ef82232a6961c25d09b79f45cd92e709 Mon Sep 17 00:00:00 2001 From: aidanfnv Date: Thu, 31 Jul 2025 19:59:46 -0700 Subject: Omit "Invalid" capability from slangc -h output (#8020) * Omit "Invalid" capability from slangc -h output * format code (#23) Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --------- Co-authored-by: slangbot Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- source/slang/slang-options.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index c3f2ad055..b7f7268d1 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -282,7 +282,8 @@ void initCommandOptions(CommandOptions& options) for (auto name : names) { - if (name.startsWith("__") || name.startsWith("spirv_1_") || name.startsWith("_")) + if (name.startsWith("__") || name.startsWith("spirv_1_") || name.startsWith("_") || + name == "Invalid") { continue; } -- cgit v1.2.3