summaryrefslogtreecommitdiff
path: root/source/slang/core.meta.slang.h
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/slang/core.meta.slang.h
parentd222889d19ff57eda999269d22da6915daedc839 (diff)
Add underscores to `AttributeUsage` to signal its preview state.
Diffstat (limited to 'source/slang/core.meta.slang.h')
-rw-r--r--source/slang/core.meta.slang.h4
1 files changed, 2 insertions, 2 deletions
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;")