Skip to content

Commit c05cd6d

Browse files
npalixmichal42
authored andcommitted
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>
1 parent e8fa600 commit c05cd6d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎scripts/coccicheck‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ coccinelle () {
9595
$SPATCH -D report $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff || \
9696
$SPATCH -D context $FLAGS -sp_file $COCCI $OPT $OPTIONS || \
9797
$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
98101
else
99102
$SPATCH -D $MODE $FLAGS -sp_file $COCCI $OPT $OPTIONS || exit 1
100103
fi

0 commit comments

Comments
 (0)