Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Basic/Attr.td
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | |||||
def SharedVar : SubsetSubject<Var, | def SharedVar : SubsetSubject<Var, | ||||
[{S->hasGlobalStorage() && !S->getTLSKind()}], | [{S->hasGlobalStorage() && !S->getTLSKind()}], | ||||
"global variables">; | "global variables">; | ||||
def GlobalVar : SubsetSubject<Var, | def GlobalVar : SubsetSubject<Var, | ||||
[{S->hasGlobalStorage()}], "global variables">; | [{S->hasGlobalStorage()}], "global variables">; | ||||
def ExternalGlobalVar : SubsetSubject<Var, | |||||
[{S->hasGlobalStorage() && S->getStorageClass()!=StorageClass::SC_Static}], | |||||
"external global variables">; | |||||
def InlineFunction : SubsetSubject<Function, | def InlineFunction : SubsetSubject<Function, | ||||
[{S->isInlineSpecified()}], "inline functions">; | [{S->isInlineSpecified()}], "inline functions">; | ||||
def FunctionTmpl | def FunctionTmpl | ||||
: SubsetSubject<Function, [{S->getTemplatedKind() == | : SubsetSubject<Function, [{S->getTemplatedKind() == | ||||
FunctionDecl::TK_FunctionTemplate}], | FunctionDecl::TK_FunctionTemplate}], | ||||
"function templates">; | "function templates">; | ||||
▲ Show 20 Lines • Show All 3,897 Lines • ▼ Show 20 Lines | def HLSLSV_GroupIndex: HLSLAnnotationAttr { | ||||
let Spellings = [HLSLSemantic<"SV_GroupIndex">]; | let Spellings = [HLSLSemantic<"SV_GroupIndex">]; | ||||
let Subjects = SubjectList<[ParmVar, GlobalVar]>; | let Subjects = SubjectList<[ParmVar, GlobalVar]>; | ||||
let LangOpts = [HLSL]; | let LangOpts = [HLSL]; | ||||
let Documentation = [HLSLSV_GroupIndexDocs]; | let Documentation = [HLSLSV_GroupIndexDocs]; | ||||
} | } | ||||
def HLSLResourceBinding: InheritableAttr { | def HLSLResourceBinding: InheritableAttr { | ||||
let Spellings = [HLSLSemantic<"register">]; | let Spellings = [HLSLSemantic<"register">]; | ||||
let Subjects = SubjectList<[HLSLBufferObj, GlobalVar]>; | let Subjects = SubjectList<[HLSLBufferObj, ExternalGlobalVar]>; | ||||
let LangOpts = [HLSL]; | let LangOpts = [HLSL]; | ||||
let Args = [StringArgument<"Slot">, StringArgument<"Space", 1>]; | let Args = [StringArgument<"Slot">, StringArgument<"Space", 1>]; | ||||
let Documentation = [HLSLResourceBindingDocs]; | let Documentation = [HLSLResourceBindingDocs]; | ||||
} | } | ||||
def HLSLShader : InheritableAttr { | def HLSLShader : InheritableAttr { | ||||
let Spellings = [Microsoft<"shader">]; | let Spellings = [Microsoft<"shader">]; | ||||
let Subjects = SubjectList<[HLSLEntry]>; | let Subjects = SubjectList<[HLSLEntry]>; | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |