ΒΆCXDiagnostic clang_codeCompleteGetDiagnostic(
    CXCodeCompleteResults* Results,
    unsigned int Index)

Description

Retrieve a diagnostic associated with the given code completion.

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

Parameters

CXCodeCompleteResults* Results
the code completion results to query.
unsigned int Index
the zero-based diagnostic number to retrieve.

Returns

the requested diagnostic. This diagnostic must be freed via a call to \c clang_disposeDiagnostic().