Commit c05cd6ddb6fce23123c62db36a4ce09da4f29dc1

Authored by Nicolas Palix
Committed by Michal Marek
1 parent e8fa600e06

coccicheck: Add the rep+ctxt mode

This adds a 'rep+ctxt' mode which prints the warning
message followed by the context.

Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -95,6 +95,9 @@
95 95 $SPATCH -D report $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff || \
96 96 $SPATCH -D context $FLAGS -sp_file $COCCI $OPT $OPTIONS || \
97 97 $SPATCH -D org $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff || exit 1
  98 + elif [ "$MODE" = "rep+ctxt" ] ; then
  99 + $SPATCH -D report $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff && \
  100 + $SPATCH -D context $FLAGS -sp_file $COCCI $OPT $OPTIONS || exit 1
98 101 else
99 102 $SPATCH -D $MODE $FLAGS -sp_file $COCCI $OPT $OPTIONS || exit 1
100 103 fi