CVS commit: src/usr.bin/xlint/lint1

2023-07-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 19 22:24:28 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lint1.h Log Message: lint: work around a possible compiler error on arm and powerpc To generate a diff of this commit: cvs rdiff -u -r1.194 -r1.195

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 21:47:35 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: gcc_attribute_var.c src/usr.bin/xlint/lint1: cgram.y Log Message: lint: each member declarator may have attributes, not only the last one To

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 21:47:35 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: gcc_attribute_var.c src/usr.bin/xlint/lint1: cgram.y Log Message: lint: each member declarator may have attributes, not only the last one To

CVS commit: src/tests/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 21:40:03 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: gcc_attribute_var.c Log Message: tests/lint: test GCC attributes in member declarations To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10

CVS commit: src/tests/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 21:40:03 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: gcc_attribute_var.c Log Message: tests/lint: test GCC attributes in member declarations To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 16:17:38 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c23.c src/usr.bin/xlint/lint1: decl.c Log Message: lint: allow 'extern' and 'thread_local' to be combined To generate a diff of this commit:

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 16:17:38 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c23.c src/usr.bin/xlint/lint1: decl.c Log Message: lint: allow 'extern' and 'thread_local' to be combined To generate a diff of this commit:

CVS commit: src/tests/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 16:11:32 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c23.c Log Message: tests/lint: test 'extern thread_local' storage classes Seen in external/mpl/bind/dist/lib/isc/pthreads/include/isc/thread.h:32. To

CVS commit: src/tests/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 16:11:32 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c23.c Log Message: tests/lint: test 'extern thread_local' storage classes Seen in external/mpl/bind/dist/lib/isc/pthreads/include/isc/thread.h:32. To

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 15:56:17 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: extend debug logging for memory management To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 15:56:17 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: extend debug logging for memory management To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 15:51:22 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: externs1.h init.c tree.c Log Message: lint: clean up duplicate code for finding struct/union members To generate a diff of this commit: cvs rdiff -u -r1.197

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 15:51:22 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: externs1.h init.c tree.c Log Message: lint: clean up duplicate code for finding struct/union members To generate a diff of this commit: cvs rdiff -u -r1.197

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 15:38:03 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: decl.c tree.c Log Message: lint: properly initialize unnamed struct/union members Previously, their 'containing type' was not initialized. The code for

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 15:38:03 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: decl.c tree.c Log Message: lint: properly initialize unnamed struct/union members Previously, their 'containing type' was not initialized. The code for

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 14:54:31 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: gcc_statement_expression.c src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix member lookup after GCC statement expression To generate a

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 14:54:31 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: gcc_statement_expression.c src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix member lookup after GCC statement expression To generate a

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 14:50:47 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split struct_or_union_member into separate parts To generate a diff of this commit: cvs rdiff -u -r1.569 -r1.570

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 14:50:47 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split struct_or_union_member into separate parts To generate a diff of this commit: cvs rdiff -u -r1.569 -r1.570

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 13:51:36 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: gcc_statement_expression.c src/usr.bin/xlint/lint1: Makefile cgram.y externs1.h tree.c Log Message: lint: fix use-after-free bug in GCC statement

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 13:51:36 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: gcc_statement_expression.c src/usr.bin/xlint/lint1: Makefile cgram.y externs1.h tree.c Log Message: lint: fix use-after-free bug in GCC statement

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 13:35:24 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c init.c lex.c lint1.h mem1.c tree.c Log Message: lint: add detailed logging for finding memory allocation bugs To

CVS commit: src/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 13:35:24 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c init.c lex.c lint1.h mem1.c tree.c Log Message: lint: add detailed logging for finding memory allocation bugs To

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 12:24:57 UTC 2023 Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/xlint/lint1: tree.c Added Files: src/tests/usr.bin/xlint/lint1: gcc_statement_expression.c Log Message: tests/lint:

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 12:24:57 UTC 2023 Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/xlint/lint1: tree.c Added Files: src/tests/usr.bin/xlint/lint1: gcc_statement_expression.c Log Message: tests/lint:

CVS commit: src/tests/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 09:53:46 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: d_lint_assert.c Log Message: tests/lint: document how to reliably crash lint1 after a parse error To generate a diff of this commit: cvs rdiff -u -r1.8

CVS commit: src/tests/usr.bin/xlint/lint1

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 09:53:46 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: d_lint_assert.c Log Message: tests/lint: document how to reliably crash lint1 after a parse error To generate a diff of this commit: cvs rdiff -u -r1.8

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 09:40:37 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: d_lint_assert.c src/usr.bin/xlint/lint1: cgram.y decl.c lex.c mem1.c Log Message: lint: add debug logging for memory management and the symbol

CVS commit: src

2023-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 15 09:40:37 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: d_lint_assert.c src/usr.bin/xlint/lint1: cgram.y decl.c lex.c mem1.c Log Message: lint: add debug logging for memory management and the symbol

CVS commit: src/usr.bin/xlint/lint1

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 09:32:42 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: document which keywords are available in which language levels To generate a diff of this commit: cvs rdiff -u -r1.185 -r1.186

CVS commit: src/usr.bin/xlint/lint1

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 09:32:42 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: document which keywords are available in which language levels To generate a diff of this commit: cvs rdiff -u -r1.185 -r1.186

CVS commit: src/usr.bin/xlint/lint1

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 09:20:23 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: decl.c tree.c Log Message: lint: clean up redundant and verbose code To generate a diff of this commit: cvs rdiff -u -r1.355 -r1.356

CVS commit: src/usr.bin/xlint/lint1

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 09:20:23 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: decl.c tree.c Log Message: lint: clean up redundant and verbose code To generate a diff of this commit: cvs rdiff -u -r1.355 -r1.356

CVS commit: src/usr.bin/xlint/lint1

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 09:04:08 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename function for creating a new expression node To generate a diff of this commit: cvs rdiff -u -r1.564 -r1.565

CVS commit: src/usr.bin/xlint/lint1

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 09:04:08 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename function for creating a new expression node To generate a diff of this commit: cvs rdiff -u -r1.564 -r1.565

CVS commit: src/share/man/man9

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 09:03:37 UTC 2023 Modified Files: src/share/man/man9: versioningsyscalls.9 Log Message: versioningsyscalls.9: fix typo To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5

CVS commit: src/share/man/man9

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 09:03:37 UTC 2023 Modified Files: src/share/man/man9: versioningsyscalls.9 Log Message: versioningsyscalls.9: fix typo To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5

CVS commit: src

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 08:53:52 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c23.c expr_binary.c msg_247.c msg_353.c src/usr.bin/xlint/lint1: lint1.h tree.c Log Message: lint: clean up comments, add a test for the '?:'

CVS commit: src

2023-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 14 08:53:52 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c23.c expr_binary.c msg_247.c msg_353.c src/usr.bin/xlint/lint1: lint1.h tree.c Log Message: lint: clean up comments, add a test for the '?:'

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 23:27:20 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: debug.c decl.c lint1.h Log Message: lint: merge duplicate code for checking duplicate type qualifiers To generate a diff of this commit: cvs rdiff -u -r1.54

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 23:27:20 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: debug.c decl.c lint1.h Log Message: lint: merge duplicate code for checking duplicate type qualifiers To generate a diff of this commit: cvs rdiff -u -r1.54

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 23:11:11 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y debug.c decl.c externs1.h lex.c lint1.h Log Message: lint: use separate types for parsing pointer types and type qualifiers The

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 23:11:11 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y debug.c decl.c externs1.h lex.c lint1.h Log Message: lint: use separate types for parsing pointer types and type qualifiers The

CVS commit: src/tests/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 22:44:10 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: decl.c Log Message: tests/lint: test duplicate type qualifiers in pointer types To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23

CVS commit: src/tests/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 22:44:10 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: decl.c Log Message: tests/lint: test duplicate type qualifiers in pointer types To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23

CVS commit: src

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 20:30:22 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c11.c c23.c src/usr.bin/xlint/lint1: decl.c lex.c Log Message: lint: in C23 mode, recognize the keyword 'thread_local' To generate a diff of

CVS commit: src

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 20:30:22 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c11.c c23.c src/usr.bin/xlint/lint1: decl.c lex.c Log Message: lint: in C23 mode, recognize the keyword 'thread_local' To generate a diff of

CVS commit: src

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 19:59:08 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: msg_010.c src/usr.bin/xlint/lint1: debug.c decl.c lex.c lint1.h Log Message: lint: _Thread_local is a storage class, not a type qualifier To

CVS commit: src

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 19:59:08 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: msg_010.c src/usr.bin/xlint/lint1: debug.c decl.c lex.c lint1.h Log Message: lint: _Thread_local is a storage class, not a type qualifier To

CVS commit: src/usr.bin/xlint

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 08:40:38 UTC 2023 Modified Files: src/usr.bin/xlint/common: emit.c externs.h inittyp.c lint.h mem.c param.h src/usr.bin/xlint/lint1: cgram.y decl.c emit1.c err.c externs1.h func.c init.c

CVS commit: src/usr.bin/xlint

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 08:40:38 UTC 2023 Modified Files: src/usr.bin/xlint/common: emit.c externs.h inittyp.c lint.h mem.c param.h src/usr.bin/xlint/lint1: cgram.y decl.c emit1.c err.c externs1.h func.c init.c

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 08:18:17 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: clean up reading lint comments To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181 src/usr.bin/xlint/lint1/lex.c Please

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 08:18:17 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: clean up reading lint comments To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181 src/usr.bin/xlint/lint1/lex.c Please

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 07:19:25 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h func.c lex.c lint1.h Log Message: lint: reduce code size for handling lint comments To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 07:19:25 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h func.c lex.c lint1.h Log Message: lint: reduce code size for handling lint comments To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 06:41:28 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c lex.c tree.c Log Message: lint: clean up code related to lint comments Remove type information from variable names, as the

CVS commit: src/usr.bin/xlint/lint1

2023-07-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 13 06:41:28 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c lex.c tree.c Log Message: lint: clean up code related to lint comments Remove type information from variable names, as the

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 20:13:28 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: reduce runtime relocations To generate a diff of this commit: cvs rdiff -u -r1.177 -r1.178 src/usr.bin/xlint/lint1/lex.c Please

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 20:13:28 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: reduce runtime relocations To generate a diff of this commit: cvs rdiff -u -r1.177 -r1.178 src/usr.bin/xlint/lint1/lex.c Please

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 19:34:01 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: debug.c tree.c Log Message: lint: clean up handling of __real__ and __imag__ These two operatos are not binary, therefore they don't need a right operand.

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 19:34:01 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: debug.c tree.c Log Message: lint: clean up handling of __real__ and __imag__ These two operatos are not binary, therefore they don't need a right operand.

CVS commit: src

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 18:26:04 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c11.c src/usr.bin/xlint/lint1: cgram.y debug.c lex.c lint1.h Log Message: lint: reject _Noreturn if it occurs in invalid places C11 introduced

CVS commit: src

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 18:26:04 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: c11.c src/usr.bin/xlint/lint1: cgram.y debug.c lex.c lint1.h Log Message: lint: reject _Noreturn if it occurs in invalid places C11 introduced

CVS commit: src

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 18:13:40 UTC 2023 Modified Files: src/distrib/sets/lists/tests: mi Added Files: src/tests/usr.bin/xlint/lint1: c11.c Log Message: tests/lint: add test for _Noreturn from C11 To generate a diff of this commit:

CVS commit: src

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 18:13:40 UTC 2023 Modified Files: src/distrib/sets/lists/tests: mi Added Files: src/tests/usr.bin/xlint/lint1: c11.c Log Message: tests/lint: add test for _Noreturn from C11 To generate a diff of this commit:

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 16:07:35 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y debug.c decl.c externs1.h lex.c lint1.h Log Message: lint: don't treat 'inline' as a storage class The additional conflict in the grammar

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 16:07:35 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y debug.c decl.c externs1.h lex.c lint1.h Log Message: lint: don't treat 'inline' as a storage class The additional conflict in the grammar

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 13:00:09 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: indent grammar using tabs instead of spaces Manually indenting the grammar rules using two spaces was too cumbersome. To generate

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 13:00:09 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: indent grammar using tabs instead of spaces Manually indenting the grammar rules using two spaces was too cumbersome. To generate

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 10:08:12 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: condense keyword table This prepares for modelling 'inline' not as a storage class, but more correctly as a function specifier. To

CVS commit: src/usr.bin/xlint/lint1

2023-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 12 10:08:12 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: condense keyword table This prepares for modelling 'inline' not as a storage class, but more correctly as a function specifier. To

CVS commit: src/usr.bin/xlint/lint1

2023-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 11 21:13:36 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename grammar rules to align with C23 To generate a diff of this commit: cvs rdiff -u -r1.453 -r1.454

CVS commit: src/usr.bin/xlint/lint1

2023-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 11 21:13:36 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename grammar rules to align with C23 To generate a diff of this commit: cvs rdiff -u -r1.453 -r1.454

CVS commit: src

2023-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 11 20:54:23 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: decl_enum_c90.c msg_054.c src/usr.bin/xlint/lint1: cgram.y err.c lint1.h Log Message: lint: update wording in diagnostic for C99 To generate a

CVS commit: src

2023-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 11 20:54:23 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: decl_enum_c90.c msg_054.c src/usr.bin/xlint/lint1: cgram.y err.c lint1.h Log Message: lint: update wording in diagnostic for C99 To generate a

CVS commit: src/usr.bin/xlint/lint1

2023-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 11 17:33:46 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: lint: in debug mode, don't generate empty message texts Most of these messages have an /* unused */ comment in err.c, but some don't.

CVS commit: src/usr.bin/xlint/lint1

2023-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 11 17:33:46 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: lint: in debug mode, don't generate empty message texts Most of these messages have an /* unused */ comment in err.c, but some don't.

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 19:58:47 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y err.c Log Message: lint: when debugging the parser, write messages on stderr This way, all messages (regular debug, yacc debug, lint diagnostics)

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 19:58:47 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y err.c Log Message: lint: when debugging the parser, write messages on stderr This way, all messages (regular debug, yacc debug, lint diagnostics)

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 19:47:12 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y ckbool.c debug.c lint1.h tree.c Log Message: lint: merge duplicate code for getting the name of an operator To generate a diff of this commit: cvs

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 19:47:12 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y ckbool.c debug.c lint1.h tree.c Log Message: lint: merge duplicate code for getting the name of an operator To generate a diff of this commit: cvs

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 19:04:52 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: update debug logging of the parser for Bison 3.8.2 Bison 3.8.2 no longer knows YYPRINT. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 19:04:52 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: update debug logging of the parser for Bison 3.8.2 Bison 3.8.2 no longer knows YYPRINT. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 19:00:33 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c lint1.h Log Message: lint: add debug logging for symbol kinds in the parser An identifier can refer to a variable, type, member, tag or label.

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 19:00:33 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c lint1.h Log Message: lint: add debug logging for symbol kinds in the parser An identifier can refer to a variable, type, member, tag or label.

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 16:20:52 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: debug.c Log Message: lint: improve debug output when debugging the grammar parser To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 16:20:52 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: debug.c Log Message: lint: improve debug output when debugging the grammar parser To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48

CVS commit: src/usr.bin/xlint/lint2

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 14:13:19 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: chk.c msg.c read.c Log Message: lint: push memory management one layer down Just as with type_name in lint1, it is more convenient if the application code

CVS commit: src/usr.bin/xlint/lint2

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 14:13:19 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: chk.c msg.c read.c Log Message: lint: push memory management one layer down Just as with type_name in lint1, it is more convenient if the application code

CVS commit: src/usr.bin/xlint

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 13:55:55 UTC 2023 Modified Files: src/usr.bin/xlint/common: emit.c src/usr.bin/xlint/lint2: main2.c msg.c Log Message: lint: replce sprintf with snprintf Even though the sprintf calls were safe, they looked

CVS commit: src/usr.bin/xlint

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 13:55:55 UTC 2023 Modified Files: src/usr.bin/xlint/common: emit.c src/usr.bin/xlint/lint2: main2.c msg.c Log Message: lint: replce sprintf with snprintf Even though the sprintf calls were safe, they looked

CVS commit: src/usr.bin/xlint/lint2

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 12:40:22 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: chk.c externs2.h hash.c lint2.h main2.c msg.c read.c Log Message: lint: clean up lint2 To generate a diff of this commit: cvs rdiff -u -r1.57

CVS commit: src/usr.bin/xlint/lint2

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 12:40:22 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: chk.c externs2.h hash.c lint2.h main2.c msg.c read.c Log Message: lint: clean up lint2 To generate a diff of this commit: cvs rdiff -u -r1.57

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 11:46:14 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y check-msgs.lua Log Message: lint: ensure that untyped grammar rules are listed Untyped grammar rules are suspicious because they subtly affect the

CVS commit: src/usr.bin/xlint/lint1

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 11:46:14 UTC 2023 Modified Files: src/usr.bin/xlint/lint1: cgram.y check-msgs.lua Log Message: lint: ensure that untyped grammar rules are listed Untyped grammar rules are suspicious because they subtly affect the

CVS commit: src/usr.bin/xlint

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 09:51:30 UTC 2023 Modified Files: src/usr.bin/xlint/common: param.h src/usr.bin/xlint/lint1: init.c lex.c tree.c src/usr.bin/xlint/lint2: hash.c read.c Log Message: lint: clean up wchar_t and hash

CVS commit: src/usr.bin/xlint

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 09:51:30 UTC 2023 Modified Files: src/usr.bin/xlint/common: param.h src/usr.bin/xlint/lint1: init.c lex.c tree.c src/usr.bin/xlint/lint2: hash.c read.c Log Message: lint: clean up wchar_t and hash

CVS commit: src/usr.bin/xlint

2023-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 9 12:15:07 UTC 2023 Modified Files: src/usr.bin/xlint/common: emit.c src/usr.bin/xlint/lint1: decl.c func.c lex.c lint1.h mem1.c Log Message: lint: miscellaneous cleanup To generate a diff of this commit: cvs

CVS commit: src/usr.bin/xlint

2023-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 9 12:15:07 UTC 2023 Modified Files: src/usr.bin/xlint/common: emit.c src/usr.bin/xlint/lint1: decl.c func.c lex.c lint1.h mem1.c Log Message: lint: miscellaneous cleanup To generate a diff of this commit: cvs

CVS commit: src

2023-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 9 12:04:08 UTC 2023 Modified Files: src/tests/usr.bin/xlint/lint1: msg_243.c src/usr.bin/xlint/lint1: err.c tree.c Log Message: lint: in the warning about ordered enums, mention the affected type To generate a

<    8   9   10   11   12   13   14   15   16   17   >