repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Ignore casts. foo((int *)&bar) is the same as foo(&bar) to this script.
[smatch.git]
/
validation
/
dubious-bitwise-with-not.c
blob
e076899af18ab2eb993b80eed0b0f2970dd126bc
1
static unsigned int
ok1
= !
1
&&
2
;
2
static unsigned int
bad1
= !
1
&
2
;
3
/*
4
* check-name: Dubious bitwise operation on !x
5
*
6
* check-error-start
7
dubious-bitwise-with-not.c:2:31: warning: dubious: !x & y
8
* check-error-end
9
*/