ΒΆCXSourceRange clang_Cursor_getSpellingNameRange(
    CXCursor,
    unsigned int pieceIndex,
    unsigned int options)

Description

Retrieve a range for a piece that forms the cursors spelling name. Most of the times there is only one range for the complete spelling but for Objective-C methods and Objective-C message expressions, there are multiple pieces for each selector identifier.

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

Parameters

CXCursor
unsigned int pieceIndex
the index of the spelling name piece. If this is greater than the actual number of pieces, it will return a NULL (invalid) range.
unsigned int options
Reserved.