Lines Matching refs:cursor
1176 void cxcursor::getOverriddenCursors(CXCursor cursor, in getOverriddenCursors() argument
1178 assert(clang_isDeclaration(cursor.kind)); in getOverriddenCursors()
1179 const NamedDecl *D = dyn_cast_or_null<NamedDecl>(getCursorDecl(cursor)); in getOverriddenCursors()
1183 CXTranslationUnit TU = getCursorTU(cursor); in getOverriddenCursors()
1195 cxcursor::getSelectorIdentifierIndexAndLoc(CXCursor cursor) { in getSelectorIdentifierIndexAndLoc() argument
1196 if (cursor.kind == CXCursor_ObjCMessageExpr) { in getSelectorIdentifierIndexAndLoc()
1197 if (cursor.xdata != -1) in getSelectorIdentifierIndexAndLoc()
1198 return std::make_pair(cursor.xdata, in getSelectorIdentifierIndexAndLoc()
1199 cast<ObjCMessageExpr>(getCursorExpr(cursor)) in getSelectorIdentifierIndexAndLoc()
1200 ->getSelectorLoc(cursor.xdata)); in getSelectorIdentifierIndexAndLoc()
1201 } else if (cursor.kind == CXCursor_ObjCClassMethodDecl || in getSelectorIdentifierIndexAndLoc()
1202 cursor.kind == CXCursor_ObjCInstanceMethodDecl) { in getSelectorIdentifierIndexAndLoc()
1203 if (cursor.xdata != -1) in getSelectorIdentifierIndexAndLoc()
1204 return std::make_pair(cursor.xdata, in getSelectorIdentifierIndexAndLoc()
1205 cast<ObjCMethodDecl>(getCursorDecl(cursor)) in getSelectorIdentifierIndexAndLoc()
1206 ->getSelectorLoc(cursor.xdata)); in getSelectorIdentifierIndexAndLoc()
1212 CXCursor cxcursor::getSelectorIdentifierCursor(int SelIdx, CXCursor cursor) { in getSelectorIdentifierCursor() argument
1213 CXCursor newCursor = cursor; in getSelectorIdentifierCursor()
1215 if (cursor.kind == CXCursor_ObjCMessageExpr) { in getSelectorIdentifierCursor()
1218 cast<ObjCMessageExpr>(getCursorExpr(cursor))->getNumSelectorLocs()) in getSelectorIdentifierCursor()
1222 } else if (cursor.kind == CXCursor_ObjCClassMethodDecl || in getSelectorIdentifierCursor()
1223 cursor.kind == CXCursor_ObjCInstanceMethodDecl) { in getSelectorIdentifierCursor()
1226 cast<ObjCMethodDecl>(getCursorDecl(cursor))->getNumSelectorLocs()) in getSelectorIdentifierCursor()
1235 CXCursor cxcursor::getTypeRefCursor(CXCursor cursor) { in getTypeRefCursor() argument
1236 if (cursor.kind != CXCursor_CallExpr) in getTypeRefCursor()
1237 return cursor; in getTypeRefCursor()
1239 if (cursor.xdata == 0) in getTypeRefCursor()
1240 return cursor; in getTypeRefCursor()
1242 const Expr *E = getCursorExpr(cursor); in getTypeRefCursor()
1253 return cursor; in getTypeRefCursor()
1255 CXTranslationUnit TU = getCursorTU(cursor); in getTypeRefCursor()
1273 return cursor; in getTypeRefCursor()
1292 int clang_Cursor_isNull(CXCursor cursor) { in clang_Cursor_isNull() argument
1293 return clang_equalCursors(cursor, clang_getNullCursor()); in clang_Cursor_isNull()
1296 CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor cursor) { in clang_Cursor_getTranslationUnit() argument
1297 return getCursorTU(cursor); in clang_Cursor_getTranslationUnit()
1517 static inline unsigned getHashValue(const CXCursor &cursor) { in getHashValue()
1519 getHashValue(std::make_pair(cursor.data[0], cursor.data[1])); in getHashValue()
1535 unsigned clang_CXCursorSet_contains(CXCursorSet set, CXCursor cursor) { in clang_CXCursorSet_contains() argument
1539 return setImpl->find(cursor) != setImpl->end(); in clang_CXCursorSet_contains()
1542 unsigned clang_CXCursorSet_insert(CXCursorSet set, CXCursor cursor) { in clang_CXCursorSet_insert() argument
1544 if (cursor.kind >= CXCursor_FirstInvalid && in clang_CXCursorSet_insert()
1545 cursor.kind <= CXCursor_LastInvalid) in clang_CXCursorSet_insert()
1551 unsigned &entry = (*setImpl)[cursor]; in clang_CXCursorSet_insert()
1557 CXCompletionString clang_getCursorCompletionString(CXCursor cursor) { in clang_getCursorCompletionString() argument
1558 enum CXCursorKind kind = clang_getCursorKind(cursor); in clang_getCursorCompletionString()
1560 const Decl *decl = getCursorDecl(cursor); in clang_getCursorCompletionString()
1562 ASTUnit *unit = getCursorASTUnit(cursor); in clang_getCursorCompletionString()
1572 const MacroDefinitionRecord *definition = getCursorMacroDefinition(cursor); in clang_getCursorCompletionString()
1574 ASTUnit *unit = getCursorASTUnit(cursor); in clang_getCursorCompletionString()
1612 void clang_getOverriddenCursors(CXCursor cursor, CXCursor **overridden, in clang_getOverriddenCursors() argument
1619 CXTranslationUnit TU = cxcursor::getCursorTU(cursor); in clang_getOverriddenCursors()
1624 if (!clang_isDeclaration(cursor.kind)) in clang_getOverriddenCursors()
1652 cxcursor::getOverriddenCursors(cursor, *Vec); in clang_getOverriddenCursors()