History log of /netbsd-src/usr.bin/xlint/lint1/check-msgs.lua (Results 1 – 22 of 22)
Revision Date Author Comments
# 9e211f35 01-Mar-2024 rillig <rillig@NetBSD.org>

tests/lint: remove redundant documentation


# bc8fe445 06-Feb-2024 rillig <rillig@NetBSD.org>

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 a

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.

show more ...


# 4a0dff37 12-Aug-2023 rillig <rillig@NetBSD.org>

lint: clean up


# e442b1ff 10-Jul-2023 rillig <rillig@NetBSD.org>

lint: ensure that untyped grammar rules are listed

Untyped grammar rules are suspicious because they subtly affect the
order in which the grammar actions are performed. This leads to the
various bu

lint: ensure that untyped grammar rules are listed

Untyped grammar rules are suspicious because they subtly affect the
order in which the grammar actions are performed. This leads to the
various bugs mentioned in msg_347.c.

show more ...


# 29b0195f 02-Jul-2023 rillig <rillig@NetBSD.org>

lint: add initial support for C23

Required by xsrc/external/mit/MesaLib.old, brw_eu_validate.c, which
initializes a struct using empty braces: 'return (struct string){};'.


# 715e58e7 05-Jul-2022 rillig <rillig@NetBSD.org>

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 a

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@

show more ...


# 68e4158d 03-Jul-2022 rillig <rillig@NetBSD.org>

lint: do not treat message IDs as arithmetic numbers

No functional change.


# 6a154b2b 03-Jul-2022 rillig <rillig@NetBSD.org>

lint: remove unused code in consistency checker


# 41c1949f 03-Jul-2022 rillig <rillig@NetBSD.org>

lint: verify that comment above warning_at matches the message

No binary change.


# a8a62f37 16-Dec-2021 rillig <rillig@NetBSD.org>

tests/lint: ensure that tests on a message mention this message


# 39a12fe1 04-Sep-2021 rillig <rillig@NetBSD.org>

lint: spell out abbreviations in comments

No functional change.


# 4d5c51cc 15-Jun-2021 rillig <rillig@NetBSD.org>

tests/lint1: make error handling in the lint1 linter simpler


# 67509c58 14-Apr-2021 rillig <rillig@NetBSD.org>

lint: add support for C11-isms such as int[static 3]


# a75e3514 28-Feb-2021 rillig <rillig@NetBSD.org>

tests/lint: shorten code for checking redundancy in files

No functional change.


# f963c8e4 28-Feb-2021 rillig <rillig@NetBSD.org>

tests/lint: keep messages in test files in sync with actual messages

Each of the tests named msg_*.c repeats the template of the message, to
make the test somewhat self-contained when viewed in isol

tests/lint: keep messages in test files in sync with actual messages

Each of the tests named msg_*.c repeats the template of the message, to
make the test somewhat self-contained when viewed in isolation.

This creates a redundancy, and keeping track of this manually is next to
impossible. I tried it and failed in 9 cases, even though it has just
been 2 months since I myself created the initial files and I knew all
the time that this redundancy exists.

Be fool-proof for the future by checking this automatically.

show more ...


# 90c29d84 19-Feb-2021 rillig <rillig@NetBSD.org>

lint: shorten code in check-msgs.lua

No functional change.


# 73fb62d3 31-Jan-2021 rillig <rillig@NetBSD.org>

lint: mention the operator in messages about bit shifts


# cf4174e4 02-Jan-2021 rillig <rillig@NetBSD.org>

lint: fix typo in check-msgs tool


# f78ee5c0 01-Jan-2021 rillig <rillig@NetBSD.org>

lint: add missing redundant messages in source code


# 64517206 01-Jan-2021 rillig <rillig@NetBSD.org>

lint: align comments with actual message, in the lexer and parser


# d4b0f2fe 01-Jan-2021 rillig <rillig@NetBSD.org>

lint: align comments in code with actual messages

Redundancy is bad. Especially in this case, separating the format
strings from the actual arguments prevents the compiler from
cross-checking them.


# 2e28c523 31-Dec-2020 rillig <rillig@NetBSD.org>

lint: check messages and their IDs for consistency