ΒΆint clang_Cursor_getObjCSelectorIndex(CXCursor)

Description

If the cursor points to a selector identifier in an Objective-C method or message expression, this returns the selector index. After getting a cursor with #clang_getCursor, this can be called to determine if the location points to a selector identifier.

Declared at: clang/include/clang-c/Index.h:4593

Parameters

CXCursor

Returns

The selector index if the cursor is an Objective-C method or message expression and the cursor is pointing to a selector identifier, or -1 otherwise.