ΒΆCXSourceRange clang_getDiagnosticRange(
CXDiagnostic Diagnostic,
unsigned int Range)
CXSourceRange clang_getDiagnosticRange(
CXDiagnostic Diagnostic,
unsigned int Range)
Description
Retrieve a source range associated with the diagnostic. A diagnostic's source ranges highlight important elements in the source code. On the command line, Clang displays source ranges by underlining them with '~' characters.
Declared at: clang/include/clang-c/Index.h:1069
Parameters
- CXDiagnostic Diagnostic
- the diagnostic whose range is being extracted.
- unsigned int Range
- the zero-based index specifying which range to
Returns
the requested source range.