Specifies the format of lint output. f can be one of the following: macro, simple, src, or tab.
Table 4–2 The -errfmt Flags
Value |
Meaning |
---|---|
macro |
Displays the source code, the line number, and the place of the error, with macro unfolding |
simple |
Displays the line number and the place number, in brackets, of the error, for one-line (simple) diagnostic messages. Similar to the -s option, but includes error-position information |
src |
Displays the source code, the line number, and the place of the error (no macro unfolding) |
tab |
Displays in tabular format. This is the default. |
The default is -errfmt=tab. Specifying -errfmt is equivalent to specifying -errfmt=tab.
If more than one format is specified, the last format specified is used, and lint warns about the unused formats.