Skip to main content

pm_diagnostic_next

Function pm_diagnostic_next 

Source
pub unsafe extern "C" fn pm_diagnostic_next(
    diagnostic: *const pm_diagnostic_t,
) -> *const pm_diagnostic_t
Expand description

Get the diagnostic that follows the given diagnostic among the errors or the warnings of the parser that produced it.

@param diagnostic The diagnostic to get the successor of. @returns The next diagnostic of the same kind, or NULL if the given diagnostic is the last one.