Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Fri Apr  1 23:16:32 UTC 2022

Modified Files:
        src/tests/usr.bin/xlint/lint1: decl_direct_abstract.c
            decl_direct_abstract.exp msg_012.c msg_012.exp msg_014.c
            msg_014.exp msg_144.c msg_144.exp parse_type_name.c
            parse_type_name.exp
        src/usr.bin/xlint/lint1: err.c tree.c

Log Message:
lint: add type details to message about 'sizeof(function)'

The code in add_function is severely broken, it mixes up the return type
of the function with the argument types.  For now, at least show the
guessed type in the diagnostic, to allow human readers quickly spot the
bug.

Extend the test cases in decl_direct_abstract.c to show that the
behavior differs unreasonably if the first parameter of the function is
equal to its return type.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c
cvs rdiff -u -r1.4 -r1.5 \
    src/tests/usr.bin/xlint/lint1/decl_direct_abstract.exp \
    src/tests/usr.bin/xlint/lint1/msg_144.c
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_012.c \
    src/tests/usr.bin/xlint/lint1/msg_012.exp \
    src/tests/usr.bin/xlint/lint1/msg_014.c \
    src/tests/usr.bin/xlint/lint1/msg_014.exp \
    src/tests/usr.bin/xlint/lint1/msg_144.exp
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/xlint/lint1/parse_type_name.c
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/parse_type_name.exp
cvs rdiff -u -r1.154 -r1.155 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.413 -r1.414 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index