forked from OSchip/llvm-project
Kill the unused and unnecessary CXCursor_MemberRef, twin to the
now-dead CXCursor_ObjCIvarRef. llvm-svn: 93928
This commit is contained in:
parent
015026e358
commit
7d1efeb43d
|
@ -115,11 +115,10 @@ enum CXCursorKind {
|
|||
CXCursor_ObjCClassRef = 42,
|
||||
|
||||
CXCursor_ObjCSelectorRef = 43, /* Expression references */
|
||||
CXCursor_VarRef = 45,
|
||||
CXCursor_FunctionRef = 46,
|
||||
CXCursor_EnumConstantRef = 47,
|
||||
CXCursor_MemberRef = 48,
|
||||
CXCursor_LastRef = 48,
|
||||
CXCursor_VarRef = 44,
|
||||
CXCursor_FunctionRef = 45,
|
||||
CXCursor_EnumConstantRef = 46,
|
||||
CXCursor_LastRef = 46,
|
||||
|
||||
/* Error conditions */
|
||||
CXCursor_FirstInvalid = 70,
|
||||
|
|
|
@ -882,7 +882,6 @@ const char *clang_getCursorKindSpelling(enum CXCursorKind Kind) {
|
|||
case CXCursor_VarRef: return "VarRef";
|
||||
case CXCursor_FunctionRef: return "FunctionRef";
|
||||
case CXCursor_EnumConstantRef: return "EnumConstantRef";
|
||||
case CXCursor_MemberRef: return "MemberRef";
|
||||
|
||||
case CXCursor_InvalidFile: return "InvalidFile";
|
||||
case CXCursor_NoDeclFound: return "NoDeclFound";
|
||||
|
@ -1006,8 +1005,7 @@ CXSourceLocation clang_getCursorLocation(CXCursor C) {
|
|||
case CXCursor_ObjCSelectorRef:
|
||||
case CXCursor_VarRef:
|
||||
case CXCursor_FunctionRef:
|
||||
case CXCursor_EnumConstantRef:
|
||||
case CXCursor_MemberRef: {
|
||||
case CXCursor_EnumConstantRef: {
|
||||
Expr *E = getCursorExpr(C);
|
||||
ASTContext &Context = getCursorContext(C);
|
||||
if (ObjCMessageExpr *Msg = dyn_cast<ObjCMessageExpr>(E))
|
||||
|
@ -1065,7 +1063,6 @@ CXSourceRange clang_getCursorExtent(CXCursor C) {
|
|||
case CXCursor_VarRef:
|
||||
case CXCursor_FunctionRef:
|
||||
case CXCursor_EnumConstantRef:
|
||||
case CXCursor_MemberRef:
|
||||
return translateSourceRange(getCursorContext(C),
|
||||
getCursorExpr(C)->getSourceRange());
|
||||
|
||||
|
@ -1104,8 +1101,7 @@ CXCursor clang_getCursorReferenced(CXCursor C) {
|
|||
case CXCursor_ObjCSelectorRef:
|
||||
case CXCursor_VarRef:
|
||||
case CXCursor_FunctionRef:
|
||||
case CXCursor_EnumConstantRef:
|
||||
case CXCursor_MemberRef: {
|
||||
case CXCursor_EnumConstantRef: {
|
||||
Decl *D = getDeclFromExpr(getCursorExpr(C));
|
||||
if (D)
|
||||
return MakeCXCursor(D);
|
||||
|
|
|
@ -175,7 +175,6 @@ ASTContext &cxcursor::getCursorContext(CXCursor Cursor) {
|
|||
case CXCursor_VarRef:
|
||||
case CXCursor_FunctionRef:
|
||||
case CXCursor_EnumConstantRef:
|
||||
case CXCursor_MemberRef:
|
||||
return *static_cast<ASTContext *>(Cursor.data[2]);
|
||||
|
||||
case CXCursor_InvalidFile:
|
||||
|
|
Loading…
Reference in New Issue