summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@google.com>2019-01-29 13:35:23 -0800
committerYong He <yonghe@google.com>2019-01-29 13:35:23 -0800
commitc1761283e7bb6b5cfcedf910e76fd4f939395b1d (patch)
tree40bcf976326a303373d53dae0ff11ef6a5518b3e /source
parentd222889d19ff57eda999269d22da6915daedc839 (diff)
Add underscores to `AttributeUsage` to signal its preview state.
Diffstat (limited to 'source')
-rw-r--r--source/slang/core.meta.slang4
-rw-r--r--source/slang/core.meta.slang.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang
index 54dfc6127..bd01d679a 100644
--- a/source/slang/core.meta.slang
+++ b/source/slang/core.meta.slang
@@ -1287,11 +1287,11 @@ attribute_syntax [mutating] : MutatingAttribute;
__attributeTarget(FunctionDeclBase)
attribute_syntax [__readNone] : ReadNoneAttribute;
-enum AttributeTargets
+enum _AttributeTargets
{
Struct = $( (int) UserDefinedAttributeTargets::Struct),
Var = $( (int) UserDefinedAttributeTargets::Var),
Function = $( (int) UserDefinedAttributeTargets::Function),
};
__attributeTarget(StructDecl)
-attribute_syntax [AttributeUsage(target : AttributeTargets)] : AttributeUsageAttribute; \ No newline at end of file
+attribute_syntax [__AttributeUsage(target : _AttributeTargets)] : AttributeUsageAttribute; \ No newline at end of file
diff --git a/source/slang/core.meta.slang.h b/source/slang/core.meta.slang.h
index f0671396d..448fdb058 100644
--- a/source/slang/core.meta.slang.h
+++ b/source/slang/core.meta.slang.h
@@ -1305,7 +1305,7 @@ SLANG_RAW(" /// This is equivalent to the LLVM `readnone` function attribute.
SLANG_RAW("__attributeTarget(FunctionDeclBase)\n")
SLANG_RAW("attribute_syntax [__readNone] : ReadNoneAttribute;\n")
SLANG_RAW("\n")
-SLANG_RAW("enum AttributeTargets\n")
+SLANG_RAW("enum _AttributeTargets\n")
SLANG_RAW("{\n")
SLANG_RAW(" Struct = ")
SLANG_SPLICE( (int) UserDefinedAttributeTargets::Struct
@@ -1321,4 +1321,4 @@ SLANG_SPLICE( (int) UserDefinedAttributeTargets::Function
SLANG_RAW(",\n")
SLANG_RAW("};\n")
SLANG_RAW("__attributeTarget(StructDecl)\n")
-SLANG_RAW("attribute_syntax [AttributeUsage(target : AttributeTargets)] : AttributeUsageAttribute;")
+SLANG_RAW("attribute_syntax [__AttributeUsage(target : _AttributeTargets)] : AttributeUsageAttribute;")