mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 00:00:29 +09:00
Add clang static analyzer to reduce criteria
This commit is contained in:
1 parent
c4ec2c7881
commit
2947d4350f
1 file changed
+3
-1
@@ -54,7 +54,9 @@ if
|
|||||||
grep 'incompatible implicit' outa.txt ||\
|
grep 'incompatible implicit' outa.txt ||\
|
||||||
grep 'excess elements in struct initializer' outa.txt ||\
|
grep 'excess elements in struct initializer' outa.txt ||\
|
||||||
grep 'comparison between pointer and integer' outa.txt ||\
|
grep 'comparison between pointer and integer' outa.txt ||\
|
||||||
grep 'division by zero' outa.txt)
|
grep 'division by zero' outa.txt ||\
|
||||||
|
! clang -Wall -Wextra --analyze -c test_reduced.c > outb.txt 2>&1 ||\
|
||||||
|
grep 'garbage value' outb.txt)
|
||||||
then
|
then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user