ΒΆCXSourceRange clang_getCursorExtent(CXCursor)

Description

Retrieve the physical extent of the source construct referenced by the given cursor. The extent of a cursor starts with the file/line/column pointing at the first character within the source construct that the cursor refers to and ends with the last character within that source construct. For a declaration, the extent covers the declaration itself. For a reference, the extent covers the location of the reference (e.g., where the referenced entity was actually used).

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

Parameters

CXCursor