summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-08-29 11:26:27 +0800
committerGitHub <noreply@github.com>2023-08-29 11:26:27 +0800
commitaf363c02bf0fa2502c14f454965adff87170ff15 (patch)
treecc3f49d1f2a80bc02d5afd795ac73f168203d40a
parent508dc3a95de50de4a4d07d0a72a18e40d55b0e2e (diff)
s/depreciated/deprecated/ (#3153)
-rw-r--r--docs/command-line-slangc-reference.md6
-rw-r--r--slang.h6
-rw-r--r--source/compiler-core/slang-artifact.h6
-rw-r--r--source/compiler-core/slang-downstream-compiler.h4
-rw-r--r--source/slang/hlsl.meta.slang2
-rw-r--r--source/slang/slang-options.cpp12
6 files changed, 18 insertions, 18 deletions
diff --git a/docs/command-line-slangc-reference.md b/docs/command-line-slangc-reference.md
index 862ed9022..05b27043f 100644
--- a/docs/command-line-slangc-reference.md
+++ b/docs/command-line-slangc-reference.md
@@ -18,7 +18,7 @@ slangc -help-style markdown -h
* [Debugging](#Debugging)
* [Experimental](#Experimental)
* [Internal](#Internal)
-* [Depreciated](#Depreciated)
+* [Deprecated](#Deprecated)
* [compiler](#compiler)
* [language](#language)
* [archive-type](#archive-type)
@@ -647,8 +647,8 @@ Enable liveness tracking. Places SLANG_LIVE_START, and SLANG_LIVE_END in output
-<a id="Depreciated"></a>
-# Depreciated
+<a id="Deprecated"></a>
+# Deprecated
Deprecated options (allowed but ignored; may be removed in future)
diff --git a/slang.h b/slang.h
index 0d9c0b44a..14e9a30e2 100644
--- a/slang.h
+++ b/slang.h
@@ -1100,7 +1100,7 @@ extern "C"
typedef void(*SlangFuncPtr)(void);
/**
- (DEPRECIATED) ISlangSharedLibrary
+ (DEPRECATED) ISlangSharedLibrary
*/
struct ISlangSharedLibrary_Dep1: public ISlangUnknown
{
@@ -3365,7 +3365,7 @@ namespace slang
SlangPassThrough passThrough,
char const* path) = 0;
- /** DEPRECIATED: Use setLanguagePrelude
+ /** DEPRECATED: Use setLanguagePrelude
Set the 'prelude' for generated code for a 'downstream compiler'.
@param passThrough The downstream compiler for generated code that will have the prelude applied to it.
@@ -3377,7 +3377,7 @@ namespace slang
SlangPassThrough passThrough,
const char* preludeText) = 0;
- /** DEPRECIATED: Use getLanguagePrelude
+ /** DEPRECATED: Use getLanguagePrelude
Get the 'prelude' for generated code for a 'downstream compiler'.
@param passThrough The downstream compiler for generated code that will have the prelude applied to it.
diff --git a/source/compiler-core/slang-artifact.h b/source/compiler-core/slang-artifact.h
index 6072cdf76..4f33f5e2e 100644
--- a/source/compiler-core/slang-artifact.h
+++ b/source/compiler-core/slang-artifact.h
@@ -74,7 +74,7 @@ static_assert(std::is_trivially_copyable_v<TerminatedCharSlice>);
If some aspect can apply to multiple items identically we move that to a separate enum.
NOTE!
-New Kinds must be added at the end. Values can be depreciated, or disabled
+New Kinds must be added at the end. Values can be deprecated, or disabled
but never removed, without breaking binary compatability.
Any change requires a change to SLANG_ARTIFACT_KIND
@@ -121,7 +121,7 @@ enum class ArtifactKind : uint8_t
SlangIR and LLVMIR can be GPU or CPU orientated, so put in own category.
NOTE!
-New Payloads must be added at the end. Values can be depreciated, or disabled
+New Payloads must be added at the end. Values can be deprecated, or disabled
but never removed, without breaking binary compatability.
Any change requires a change to SLANG_ARTIFACT_PAYLOAD
@@ -196,7 +196,7 @@ enum class ArtifactPayload : uint8_t
/* Style.
NOTE!
-New Styles must be added at the end. Values can be depreciated, or disabled
+New Styles must be added at the end. Values can be deprecated, or disabled
but never removed, without breaking binary compatability.
Any change requires a change to SLANG_ARTIFACT_STYLE
diff --git a/source/compiler-core/slang-downstream-compiler.h b/source/compiler-core/slang-downstream-compiler.h
index 4feffa743..c8cd02783 100644
--- a/source/compiler-core/slang-downstream-compiler.h
+++ b/source/compiler-core/slang-downstream-compiler.h
@@ -260,8 +260,8 @@ struct DownstreamCompileOptions
};
static_assert(std::is_trivially_copyable_v<DownstreamCompileOptions>);
-#define SLANG_ALIAS_DEPRECIATED_VERSION(name, id, firstField, lastField) \
-struct name##_AliasDepreciated##id \
+#define SLANG_ALIAS_DEPRECATED_VERSION(name, id, firstField, lastField) \
+struct name##_AliasDeprecated##id \
{ \
static const ptrdiff_t kStart = SLANG_OFFSET_OF(name, firstField); \
static const ptrdiff_t kEnd = SLANG_OFFSET_OF(name, lastField) + sizeof(name::lastField); \
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang
index a3900826e..81f05d3d4 100644
--- a/source/slang/hlsl.meta.slang
+++ b/source/slang/hlsl.meta.slang
@@ -3379,7 +3379,7 @@ int NonUniformResourceIndex(int index)
/// It's effect is presumably to ignore it, which the following implementation does.
/// We should also look to add a warning for this scenario.
[__unsafeForceInlineEarly]
-[deprecated("NonUniformResourceIndex on a type other than uint/int is depreciated and has no effect")]
+[deprecated("NonUniformResourceIndex on a type other than uint/int is deprecated and has no effect")]
T NonUniformResourceIndex<T>(T value) { return value; }
// Normalize a vector
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp
index 545f222de..c911baea4 100644
--- a/source/slang/slang-options.cpp
+++ b/source/slang/slang-options.cpp
@@ -151,7 +151,7 @@ enum class OptionKind
SaveStdLibBinSource,
TrackLiveness,
- // Depreciated
+ // Deprecated
ParameterBlocksUseRegisterSpaces,
CountOf,
@@ -225,7 +225,7 @@ void initCommandOptions(CommandOptions& options)
options.addCategory(CategoryKind::Option, "Debugging", "Compiler debugging/instrumentation options");
options.addCategory(CategoryKind::Option, "Experimental", "Experimental options (use at your own risk)");
options.addCategory(CategoryKind::Option, "Internal", "Internal-use options (use at your own risk)");
- options.addCategory(CategoryKind::Option, "Depreciated", "Deprecated options (allowed but ignored; may be removed in future)");
+ options.addCategory(CategoryKind::Option, "Deprecated", "Deprecated options (allowed but ignored; may be removed in future)");
// Do the easy ones
{
@@ -629,15 +629,15 @@ void initCommandOptions(CommandOptions& options)
};
_addOptions(makeConstArrayView(internalOpts), options);
- /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Depreciated !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
+ /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Deprecated !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
- options.setCategory("Depreciated");
+ options.setCategory("Deprecated");
- const Option depreciatedOpts[] =
+ const Option deprecatedOpts[] =
{
{ OptionKind::ParameterBlocksUseRegisterSpaces, "-parameter-blocks-use-register-spaces", nullptr, "Parameter blocks will use register spaces" },
};
- _addOptions(makeConstArrayView(depreciatedOpts), options);
+ _addOptions(makeConstArrayView(deprecatedOpts), options);
// We can now check that the whole range is available. If this fails it means there
// is an enum in the list that hasn't been setup as an option!