Source context information used for diagnostics and error reporting.
This module defines the lightweight context type used throughout the fpx preprocessor to associate source-location information with diagnostics, warnings, notes, and error messages.
Every diagnostic emitted by fpx is accompanied by a context object describing where the event occurred. This enables the generation of modern compiler-style messages containing file names, line numbers, source snippets, and caret annotations.
A context captures:
The information stored in a context is consumed primarily by the fpx_logging module to produce precise and user-friendly diagnostics.
For example:
Accurate context information becomes particularly important when processing nested include files, evaluating conditional directives, or reporting errors originating from macro expansions.
Data Types | |
| type | context |
| Snapshot of a source location within the preprocessing stream. More... | |