Home | History | Annotate | Download | only in lint1
History log of /src/usr.bin/xlint/lint1/makeman
RevisionDateAuthorComments
 1.11  08-Jun-2024  rillig lint.7: abbreviate %lld to %d in the list of messages
 1.10  11-May-2024  rillig lint: warn when comparing an integer to a floating point constant
 1.9  06-Feb-2024  rillig lint: tab-align message numbers in err.c

By replacing block comments with end-of-line comments, the comments take
up less space and thus no longer require to be indented by 6 spaces.

The messages and their comments are used in 3 places: the manual page
lint.7, the err-msgs.h header for debug mode, and check-msgs.lua to
verify that the comments above the message IDs correspond to the actual
messages.

No functional change.
 1.8  06-Feb-2024  rillig lint.7: remove implementation details from message list

From a user's perspective, it's irrelevant whether a lint message is
generated using '%s' or '%.*s'; same for the integer widths, as they are
platform-dependent.
 1.7  21-Jul-2023  lukem lint: use TOOL_SED instead of sed

Use ${TOOL_SED} instead of (the host) sed, as the
latter doesn't necessarily support the non-POSIX -E.

PR bin/57533
 1.6  05-Jul-2022  rillig lint: add additional queries that are not enabled by default

In the last 18 months, several lint warnings have been made adjusted to
allow common usage patterns. For example, lint no longer warns about a
constant condition in the statement 'do { ... } while (false)' (message
161), as this pattern is well-known in statement-like macros, making it
unlikely that the 'false' is a mistake. Another example is casts
between unequal pointer types (message 247) for a few well-known
patterns that are unlikely to be bugs.

Occasionally, it is useful to query the code for patterns or events that
would not justify a warning. These patterns are modeled as predefined
queries that can be selected individually, in addition to and
independently of the existing warnings and errors.

New queries can be added as needed, in the same way as new warnings.
Queries that are deemed no longer used can be deactivated in the same
way as warnings that are no longer used.

As long as none of the queries is enabled, they produce a minimal
overhead of querying a single global variable. Computations that are
more expensive than a few machine instructions should be guarded by
any_query_enabled.

https://mail-index.netbsd.org/source-changes-d/2022/06/28/msg013716.html

ok christos@
 1.5  05-Sep-2021  rillig lint: generate date of lint.7 from err.c
 1.4  05-Sep-2021  rillig lint.7: document removed messages

Having just an empty string as the message was confusing.
 1.3  30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.2  19-Dec-2006  christos branches: 1.2.10;
No need to leave a lot of space between the error number and the message.
 1.1  06-Jul-2000  christos new script to generate a man page of error messages that lint generates
 1.2.10.1  18-May-2008  yamt sync with head.

RSS XML Feed