forked from OSchip/llvm-project
Fix copy-pasto in naming of LAST_MS_INHERITANCE[_ATTR]
Richard Smith pointed this out over a month ago. llvm-svn: 181830
This commit is contained in:
parent
4835990a6f
commit
4290361b99
|
@ -145,7 +145,7 @@ public:
|
|||
// Implement isa/cast/dyncast/etc.
|
||||
static bool classof(const Attr *A) {
|
||||
// Relies on relative order of enum emission with respect to param attrs.
|
||||
return (A->getKind() <= attr::LAST_MS_INHERITABLE &&
|
||||
return (A->getKind() <= attr::LAST_MS_INHERITANCE &&
|
||||
A->getKind() > attr::LAST_INHERITABLE_PARAM);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -24,7 +24,7 @@ enum Kind {
|
|||
#define ATTR(X) X,
|
||||
#define LAST_INHERITABLE_ATTR(X) X, LAST_INHERITABLE = X,
|
||||
#define LAST_INHERITABLE_PARAM_ATTR(X) X, LAST_INHERITABLE_PARAM = X,
|
||||
#define LAST_MS_INHERITABLE_ATTR(X) X, LAST_MS_INHERITABLE = X,
|
||||
#define LAST_MS_INHERITANCE_ATTR(X) X, LAST_MS_INHERITANCE = X,
|
||||
#include "clang/Basic/AttrList.inc"
|
||||
NUM_ATTRS
|
||||
};
|
||||
|
|
|
@ -1094,13 +1094,13 @@ void EmitClangAttrList(RecordKeeper &Records, raw_ostream &OS) {
|
|||
" INHERITABLE_PARAM_ATTR(NAME)\n";
|
||||
OS << "#endif\n\n";
|
||||
|
||||
OS << "#ifndef MS_INHERITABLE_ATTR\n";
|
||||
OS << "#define MS_INHERITABLE_ATTR(NAME) INHERITABLE_ATTR(NAME)\n";
|
||||
OS << "#ifndef MS_INHERITANCE_ATTR\n";
|
||||
OS << "#define MS_INHERITANCE_ATTR(NAME) INHERITABLE_ATTR(NAME)\n";
|
||||
OS << "#endif\n\n";
|
||||
|
||||
OS << "#ifndef LAST_MS_INHERITABLE_ATTR\n";
|
||||
OS << "#define LAST_MS_INHERITABLE_ATTR(NAME)"
|
||||
" MS_INHERITABLE_ATTR(NAME)\n";
|
||||
OS << "#ifndef LAST_MS_INHERITANCE_ATTR\n";
|
||||
OS << "#define LAST_MS_INHERITANCE_ATTR(NAME)"
|
||||
" MS_INHERITANCE_ATTR(NAME)\n";
|
||||
OS << "#endif\n\n";
|
||||
|
||||
Record *InhClass = Records.getClass("InheritableAttr");
|
||||
|
@ -1124,16 +1124,16 @@ void EmitClangAttrList(RecordKeeper &Records, raw_ostream &OS) {
|
|||
}
|
||||
|
||||
EmitAttrList(OS, "INHERITABLE_PARAM_ATTR", InhParamAttrs);
|
||||
EmitAttrList(OS, "MS_INHERITABLE_ATTR", MSInhAttrs);
|
||||
EmitAttrList(OS, "MS_INHERITANCE_ATTR", MSInhAttrs);
|
||||
EmitAttrList(OS, "INHERITABLE_ATTR", InhAttrs);
|
||||
EmitAttrList(OS, "ATTR", NonInhAttrs);
|
||||
|
||||
OS << "#undef LAST_ATTR\n";
|
||||
OS << "#undef INHERITABLE_ATTR\n";
|
||||
OS << "#undef MS_INHERITABLE_ATTR\n";
|
||||
OS << "#undef MS_INHERITANCE_ATTR\n";
|
||||
OS << "#undef LAST_INHERITABLE_ATTR\n";
|
||||
OS << "#undef LAST_INHERITABLE_PARAM_ATTR\n";
|
||||
OS << "#undef LAST_MS_INHERITABLE_ATTR\n";
|
||||
OS << "#undef LAST_MS_INHERITANCE_ATTR\n";
|
||||
OS << "#undef ATTR\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue