Compiler implementation of the D programming language.
Interface for diagnostic reporting.
Reports an error message.
Loc loc
| Location of error |
const(char)* format
| format string for error |
... | format string arguments |
Reports additional details about an error message.
Loc loc
| Location of error |
const(char)* format
| format string for supplemental message |
... | format string arguments |
Reports a warning message.
Loc loc
| Location of warning |
const(char)* format
| format string for warning |
... | format string arguments |
Reports additional details about a warning message.
Loc loc
| Location of warning |
const(char)* format
| format string for supplemental message |
... | format string arguments |
Reports a deprecation message.
Loc loc
| Location of the deprecation |
const(char)* format
| format string for the deprecation |
... | format string arguments |
Reports additional details about a deprecation message.
Loc loc
| Location of deprecation |
const(char)* format
| format string for supplemental message |
... | format string arguments |
Diagnostic reporter which prints the diagnostic messages to stderr.
This is usually the default diagnostic reporter.
Initializes this object.
DiagnosticReporting useDeprecated
| indicates how deprecation diagnostics should be handled |
Color highlighting to classify messages
for errors
for gagged errors
for warnings
for deprecations
for tip messages
Print an error message, increasing the global error count.
Loc loc
| location of error |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Same as above, but allows Loc() literals to be passed.
Loc loc
| location of error |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Same as above, but takes a filename and line information arguments as separate parameters.
const(char)* filename
| source file of error |
uint linnum
| line in the source file |
uint charnum
| column number on the line |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Print additional details about an error message. Doesn't increase the error count or print an additional error prefix.
Loc loc
| location of error |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Print a warning message, increasing the global warning count.
Loc loc
| location of warning |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Print additional details about a warning message. Doesn't increase the warning count or print an additional warning prefix.
Loc loc
| location of warning |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Print a deprecation message, may increase the global warning or error count depending on whether deprecations are ignored.
Loc loc
| location of deprecation |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Print additional details about a deprecation message. Doesn't increase the error count, or print an additional deprecation prefix.
Loc loc
| location of deprecation |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Print a verbose message. Doesn't prefix or highlight messages.
Loc loc
| location of message |
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Same as above, but doesn't take a location argument.
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Print a tip message with the prefix and highlighting.
const(char)* format
| printf-style format specification |
... | printf-style variadic arguments |
Same as error
, but takes a va_list parameter, and optionally additional message prefixes.
Loc loc
| location of error |
const(char)* format
| printf-style format specification |
va_list ap
| printf-style variadic arguments |
const(char)* p1
| additional message prefix |
const(char)* p2
| additional message prefix |
const(char)* header
| title of error message |
Same as errorSupplemental
, but takes a va_list parameter.
Loc loc
| location of error |
const(char)* format
| printf-style format specification |
va_list ap
| printf-style variadic arguments |
Same as warning
, but takes a va_list parameter.
Loc loc
| location of warning |
const(char)* format
| printf-style format specification |
va_list ap
| printf-style variadic arguments |
Same as warningSupplemental
, but takes a va_list parameter.
Loc loc
| location of warning |
const(char)* format
| printf-style format specification |
va_list ap
| printf-style variadic arguments |
Same as deprecation
, but takes a va_list parameter, and optionally additional message prefixes.
Loc loc
| location of deprecation |
const(char)* format
| printf-style format specification |
va_list ap
| printf-style variadic arguments |
const(char)* p1
| additional message prefix |
const(char)* p2
| additional message prefix |
Same as message
, but takes a va_list parameter.
Loc loc
| location of message |
const(char)* format
| printf-style format specification |
va_list ap
| printf-style variadic arguments |
Same as tip
, but takes a va_list parameter.
const(char)* format
| printf-style format specification |
va_list ap
| printf-style variadic arguments |
Same as deprecationSupplemental
, but takes a va_list parameter.
Loc loc
| location of deprecation |
const(char)* format
| printf-style format specification |
va_list ap
| printf-style variadic arguments |
Call this after printing out fatal error messages to clean up and exit the compiler.
Try to stop forgetting to remove the breakpoints from release builds.
Embed these highlighting commands in the text stream. HIGHLIGHT.Escape indicates a Color follows.
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_errors.html