ΒΆunsigned int clang_getDiagnosticCategory(
    CXDiagnostic)

Description

Retrieve the category number for this diagnostic. Diagnostics can be categorized into groups along with other, related diagnostics (e.g., diagnostics under the same warning flag). This routine retrieves the category number for the given diagnostic.

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

Parameters

CXDiagnostic

Returns

The number of the category that contains this diagnostic, or zero if this diagnostic is uncategorized.