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:           Thu Apr  8 22:18:27 UTC 2021

Modified Files:
        src/distrib/sets/lists/tests: mi
        src/tests/usr.bin/xlint: check-expect.lua
        src/tests/usr.bin/xlint/lint1: Makefile t_integration.sh
        src/usr.bin/xlint/lint1: err.c externs1.h lex.c
Added Files:
        src/tests/usr.bin/xlint/lint1: feat_stacktrace.c feat_stacktrace.exp

Log Message:
lint: in code from included files, print stack trace

Previously, the standard NetBSD build generated several lint warnings in
lhash.h from OpenSSL, without providing any hint as to which file
actually included that header.  In cases like these, lint now interprets
the line number information in the preprocessor output from GCC to
reconstruct the exact include path to the file in question.

The program check-expect.lua had to be rewritten almost completely since
it assumed that all diagnostics would come from the main file.  In all
existing tests, this was true, but these tests did not cover all cases
that occurred in practice.  Now it records the complete location of the
diagnostic instead of just the line number.


To generate a diff of this commit:
cvs rdiff -u -r1.1037 -r1.1038 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/xlint/check-expect.lua
cvs rdiff -u -r1.39 -r1.40 src/tests/usr.bin/xlint/lint1/Makefile \
    src/tests/usr.bin/xlint/lint1/t_integration.sh
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/feat_stacktrace.c \
    src/tests/usr.bin/xlint/lint1/feat_stacktrace.exp
cvs rdiff -u -r1.103 -r1.104 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.101 -r1.102 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/xlint/lint1/lex.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