ΒΆCXDiagnosticSet clang_loadDiagnostics(
    const char* file,
    enum CXLoadDiag_Error* error,
    CXString* errorString)

Description

Deserialize a set of diagnostics from a Clang diagnostics bitcode file.

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

Parameters

const char* file
The name of the file to deserialize.
enum CXLoadDiag_Error* error
A pointer to a enum value recording if there was a problem deserializing the diagnostics.
CXString* errorString
A pointer to a CXString for recording the error string if the file was not successfully loaded.

Returns

A loaded CXDiagnosticSet if successful, and NULL otherwise. These diagnostics should be released using clang_disposeDiagnosticSet().