Loading...
Searching...
No Matches
diagnostic_report

Definition

Structured compiler diagnostic.

A diagnostic report consists of:

  • a severity level,
  • a primary message,
  • one or more source labels,
  • optional nested diagnostics.

Reports can be rendered using the generic interface render(...) to produce human-readable output.

Definition at line 337 of file logging.f90.


The documentation for this interface was generated from the following file:

Variables

integer level
 Level of message.
character(:), allocatable message
 Primary message.
character(:), allocatable source
 Context of the diagnostic source.
type(label_type), dimension(:), allocatable label
 Messages associated with this diagnostic.
type(diagnostic_report), dimension(:), allocatable sub
 Additional diagnostic information.

Methods

◆ diagnostic_new()

type(diagnostic_report) function diagnostic_new ( integer, intent(in) level,
character(*), intent(in), optional message,
character(*), intent(in), optional source,
type(label_type), dimension(..), intent(in), optional label,
type(diagnostic_report), dimension(:), intent(in), optional diagnostic )

Create new diagnostic message.

Parameters
[in]levelLevel of message
[in]messagePrimary message
[in]sourceContext of the diagnostic source
[in]labelMessages associated with this diagnostic
[in]diagnosticAdditional diagnostic information

Definition at line 479 of file logging.f90.