View source code
Display the source code in dmd/errors.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module dmd.errors

Compiler implementation of the D programming language.

Documentation

https://dlang.org/phobos/dmd_errors.html

Coverage

https://codecov.io/gh/dlang/dmd/src/master/src/dmd/errors.d

Functions

NameDescription
deprecation(loc, format) Print a deprecation message, may increase the global warning or error count depending on whether deprecations are ignored.
deprecationSupplemental(loc, format) Print additional details about a deprecation message. Doesn't increase the error count, or print an additional deprecation prefix.
error(loc, format) Print an error message, increasing the global error count.
error(loc, format) Same as above, but allows Loc() literals to be passed.
error(filename, linnum, charnum, format) Same as above, but takes a filename and line information arguments as separate parameters.
errorSupplemental(loc, format) Print additional details about an error message. Doesn't increase the error count or print an additional error prefix.
fatal() Call this after printing out fatal error messages to clean up and exit the compiler.
halt() Try to stop forgetting to remove the breakpoints from release builds.
message(loc, format) Print a verbose message. Doesn't prefix or highlight messages.
message(format) Same as above, but doesn't take a location argument.
vdeprecation(loc, format, ap, p1, p2) Same as deprecation, but takes a va_list parameter, and optionally additional message prefixes.
vdeprecationSupplemental(loc, format, ap) Same as deprecationSupplemental, but takes a va_list parameter.
verror(loc, format, ap, p1, p2, header) Same as error, but takes a va_list parameter, and optionally additional message prefixes.
verrorSupplemental(loc, format, ap) Same as errorSupplemental, but takes a va_list parameter.
vmessage(loc, format, ap) Same as message, but takes a va_list parameter.
vwarning(loc, format, ap) Same as warning, but takes a va_list parameter.
vwarningSupplemental(loc, format, ap) Same as warningSupplemental, but takes a va_list parameter.
warning(loc, format) Print a warning message, increasing the global warning count.
warningSupplemental(loc, format) Print additional details about a warning message. Doesn't increase the warning count or print an additional warning prefix.

Enums

NameDescription
Classification Color highlighting to classify messages
HIGHLIGHT Embed these highlighting commands in the text stream. HIGHLIGHT.Escape indicates a Color follows.

Authors

Walter Bright

License

Boost License 1.0