summaryrefslogtreecommitdiff
path: root/source/core/slang-string-escape-util.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-06-04 13:05:58 -0700
committerGitHub <noreply@github.com>2025-06-04 13:05:58 -0700
commit812e478989e27983b8dea7ab11964de751654ba2 (patch)
treee6db6def9c7896ee48c5fe42926856644e81c0e6 /source/core/slang-string-escape-util.h
parentb9dc21d362f65f22bc707bede733a9537b80460a (diff)
Make interface types non c-style in Slang2026. (#7260)
* Make interface types non c-style. * Make Optional<T> work with autodiff and existential types. * Fix. * patch behind slang 2026. * Fix warnings. * cleanup. * Fix tests. * Fix. * Fix com interface lowering. * Add comment to test. * regenerate command line reference * Add test for passing `none` to autodiff function. * Fix recording of `getDynamicObjectRTTIBytes`. * Fix nested Optional types. --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'source/core/slang-string-escape-util.h')
-rw-r--r--source/core/slang-string-escape-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/slang-string-escape-util.h b/source/core/slang-string-escape-util.h
index ece8de79f..07b3bcc3d 100644
--- a/source/core/slang-string-escape-util.h
+++ b/source/core/slang-string-escape-util.h
@@ -79,6 +79,9 @@ struct StringEscapeUtil
return isQuoted(handler->getQuoteChar(), slice);
}
+ /// Given a command line arg slice, if it is quoted, unquotes it, else returns the slice as is.
+ static UnownedStringSlice maybeUnquoteCommandLineArg(UnownedStringSlice slice);
+
/// If quoting is needed appends to out quoted
static SlangResult appendMaybeQuoted(
Handler* handler,