Skip to content

Commit

Permalink
coccicheck: Add the rep+ctxt mode
Browse files Browse the repository at this point in the history
This adds a 'rep+ctxt' mode which prints the warning
message followed by the context.

Signed-off-by: Nicolas Palix <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
npalix authored and michal42 committed Oct 11, 2012
1 parent e8fa600 commit c05cd6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/coccicheck
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ coccinelle () {
$SPATCH -D report $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff || \
$SPATCH -D context $FLAGS -sp_file $COCCI $OPT $OPTIONS || \
$SPATCH -D org $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff || exit 1
elif [ "$MODE" = "rep+ctxt" ] ; then
$SPATCH -D report $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff && \
$SPATCH -D context $FLAGS -sp_file $COCCI $OPT $OPTIONS || exit 1
else
$SPATCH -D $MODE $FLAGS -sp_file $COCCI $OPT $OPTIONS || exit 1
fi
Expand Down

0 comments on commit c05cd6d

Please sign in to comment.