ΒΆCXDiagnostic clang_getDiagnostic(
    CXTranslationUnit Unit,
    unsigned int Index)

Description

Retrieve a diagnostic associated with the given translation unit.

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

Parameters

CXTranslationUnit Unit
the translation unit 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().