diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-18 23:03:22 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-19 01:11:21 +0200 |
| commit | e140005c44ef962f5ee2a72735ea727e5db7f7f6 (patch) | |
| tree | 34db810c67998ece9bd68b336548d1330c0470bd /validation | |
| parent | dd6c3980de7daa8112a0791df730b04f2fcb3c5c (diff) | |
| download | sparse-dev-e140005c44ef962f5ee2a72735ea727e5db7f7f6.tar.gz | |
prepend diagnostics with source's path and include chain
When a diagnostic is issued for a problem in an included file,
the message show the include's path but it's often needed to
(quickly) know the chain of include files involved.
So, if the path associated with the diagnostic is different
than the path oft he source file and different from the path
of the previous message, prepend the message with a note
showing the source file's path. And, if any intermediate
include file is concerned, display the include chain
(possibly truncated or not displayed at all if too long).
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/cast-kinds-check.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/validation/cast-kinds-check.c b/validation/cast-kinds-check.c index 0c0cd673..32a106d4 100644 --- a/validation/cast-kinds-check.c +++ b/validation/cast-kinds-check.c @@ -6,6 +6,7 @@ * check-assert: sizeof(long) == 8 * * check-error-start +cast-kinds-check.c: note: in included file: optim/cast-kinds.c:5:45: warning: cast drops bits optim/cast-kinds.c:6:47: warning: cast drops bits optim/cast-kinds.c:7:46: warning: cast drops bits |
