ΒΆvoid clang_getFileLocation(
    CXSourceLocation location,
    CXFile* file,
    unsigned int* line,
    unsigned int* column,
    unsigned int* offset)

Description

Retrieve the file, line, column, and offset represented by the given source location. If the location refers into a macro expansion, return where the macro was expanded or where the macro argument was written, if the location points at a macro argument.

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

Parameters

CXSourceLocation location
the location within a source file that will be decomposed into its parts.
CXFile* file
[out] if non-NULL, will be set to the file to which the given source location points.
unsigned int* line
[out] if non-NULL, will be set to the line to which the given source location points.
unsigned int* column
[out] if non-NULL, will be set to the column to which the given source location points.
unsigned int* offset
[out] if non-NULL, will be set to the offset into the buffer to which the given source location points.