Changeset View
Changeset View
Standalone View
Standalone View
clang/utils/TableGen/ClangAttrEmitter.cpp
Show First 20 Lines • Show All 2,891 Lines • ▼ Show 20 Lines | |||||
static const AttrClassDescriptor AttrClassDescriptors[] = { | static const AttrClassDescriptor AttrClassDescriptors[] = { | ||||
{ "ATTR", "Attr" }, | { "ATTR", "Attr" }, | ||||
{ "TYPE_ATTR", "TypeAttr" }, | { "TYPE_ATTR", "TypeAttr" }, | ||||
{ "STMT_ATTR", "StmtAttr" }, | { "STMT_ATTR", "StmtAttr" }, | ||||
{ "DECL_OR_STMT_ATTR", "DeclOrStmtAttr" }, | { "DECL_OR_STMT_ATTR", "DeclOrStmtAttr" }, | ||||
{ "INHERITABLE_ATTR", "InheritableAttr" }, | { "INHERITABLE_ATTR", "InheritableAttr" }, | ||||
{ "DECL_OR_TYPE_ATTR", "DeclOrTypeAttr" }, | { "DECL_OR_TYPE_ATTR", "DeclOrTypeAttr" }, | ||||
{ "INHERITABLE_PARAM_ATTR", "InheritableParamAttr" }, | { "INHERITABLE_PARAM_ATTR", "InheritableParamAttr" }, | ||||
{ "PARAMETER_ABI_ATTR", "ParameterABIAttr" } | { "PARAMETER_ABI_ATTR", "ParameterABIAttr" }, | ||||
{ "HLSL_ANNOTATION_ATTR", "HLSLAnnotationAttr"} | |||||
}; | }; | ||||
static void emitDefaultDefine(raw_ostream &OS, StringRef name, | static void emitDefaultDefine(raw_ostream &OS, StringRef name, | ||||
const char *superName) { | const char *superName) { | ||||
OS << "#ifndef " << name << "\n"; | OS << "#ifndef " << name << "\n"; | ||||
OS << "#define " << name << "(NAME) "; | OS << "#define " << name << "(NAME) "; | ||||
if (superName) OS << superName << "(NAME)"; | if (superName) OS << superName << "(NAME)"; | ||||
OS << "\n#endif\n\n"; | OS << "\n#endif\n\n"; | ||||
▲ Show 20 Lines • Show All 1,925 Lines • Show Last 20 Lines |