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
a local clone.
dmd.errors
Compiler implementation of the
D programming language.
Authors:
License:
Source errors.d
Documentation https://dlang.org/phobos/dmd_errors.html
- enum
Classification: Color; - Color highlighting to classify messages
error- for errors
gagged- for
gaggederrors warning- for warnings
deprecation- for deprecations
- void
error(ref const Locloc, const(char)*format, ...); - Print an
errormessage, increasing the globalerrorcount.Parameters:Loc loclocation of errorconst(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
error(Locloc, const(char)*format, ...); - Same as above, but allows Loc() literals to be passed.Parameters:
Loc loclocation of errorconst(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
error(const(char)*filename, uintlinnum, uintcharnum, const(char)*format, ...); - Same as above, but takes a
filenameand line information arguments as separate parameters.Parameters:const(char)* filenamesource file of erroruint linnumline in the source file uint charnumcolumn number on the line const(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
errorSupplemental(ref const Locloc, const(char)*format, ...); - Print additional details about an error message. Doesn't increase the error count or print an additional error prefix.Parameters:
Loc loclocation of error const(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
warning(ref const Locloc, const(char)*format, ...); - Print a
warningmessage, increasing the globalwarningcount.Parameters:Loc loclocation of warningconst(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
warningSupplemental(ref const Locloc, const(char)*format, ...); - Print additional details about a warning message. Doesn't increase the warning count or print an additional warning prefix.Parameters:
Loc loclocation of warning const(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
deprecation(ref const Locloc, const(char)*format, ...); - Print a
deprecationmessage, may increase the global warning or error count depending on whether deprecations are ignored.Parameters:Loc loclocation of deprecationconst(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
deprecationSupplemental(ref const Locloc, const(char)*format, ...); - Print additional details about a deprecation message. Doesn't increase the error count, or print an additional deprecation prefix.Parameters:
Loc loclocation of deprecation const(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
message(const(char)*format, ...); - Print a verbose
message. Doesn't prefix or highlight messages.Parameters:const(char)* formatprintf-style formatspecification... printf-style variadic arguments - void
verror(ref const Locloc, const(char)*format, va_listap, const(char)*p1= null, const(char)*p2= null, const(char)*header= "Error: "); - Same as error, but takes a va_list parameter, and optionally additional message prefixes.Parameters:
Loc loclocation of error const(char)* formatprintf-style formatspecificationva_list apprintf-style variadic arguments const(char)* p1additional message prefix const(char)* p2additional message prefix const(char)* headertitle of error message - void
verrorSupplemental(ref const Locloc, const(char)*format, va_listap); - Same as errorSupplemental, but takes a va_list parameter.Parameters:
Loc loclocation of error const(char)* formatprintf-style formatspecificationva_list apprintf-style variadic arguments - void
vwarning(ref const Locloc, const(char)*format, va_listap); - Same as warning, but takes a va_list parameter.Parameters:
Loc loclocation of warning const(char)* formatprintf-style formatspecificationva_list apprintf-style variadic arguments - void
vwarningSupplemental(ref const Locloc, const(char)*format, va_listap); - Same as warningSupplemental, but takes a va_list parameter.Parameters:
Loc loclocation of warning const(char)* formatprintf-style formatspecificationva_list apprintf-style variadic arguments - void
vdeprecation(ref const Locloc, const(char)*format, va_listap, const(char)*p1= null, const(char)*p2= null); - Same as deprecation, but takes a va_list parameter, and optionally additional message prefixes.Parameters:
Loc loclocation of deprecation const(char)* formatprintf-style formatspecificationva_list apprintf-style variadic arguments const(char)* p1additional message prefix const(char)* p2additional message prefix - void
vmessage(const(char)*format, va_listap); - Same as message, but takes a va_list parameter.Parameters:
const(char)* formatprintf-style formatspecificationva_list apprintf-style variadic arguments - void
vdeprecationSupplemental(ref const Locloc, const(char)*format, va_listap); - Same as deprecationSupplemental, but takes a va_list parameter.Parameters:
Loc loclocation of deprecation const(char)* formatprintf-style formatspecificationva_list apprintf-style variadic arguments - void
fatal(); - Call this after printing out
fatalerror messages to clean up and exit the compiler. - void
halt(); - Try to stop forgetting to remove the breakpoints from release builds.
- enum
HIGHLIGHT: ubyte; - Embed these highlighting commands in the text stream.
HIGHLIGHT.Escape indicates a Color follows.
Copyright © 1999-2018 by the D Language Foundation | Page generated by
Ddoc on Tue Mar 13 17:31:13 2018