运算处理R-1-6-10强制

禁止对字面量值取逻辑非

对字面量值取逻辑非
test.c
1void foo(int x)
2{
3 if (x == !0)
禁止对字面量值取逻辑非 [gjb8114-r-1-6-10]
4 {
5 // do something
6 }
7}
对变量取逻辑非
test.c
1void foo(int x)
2{
3 unsigned int y = 0;
4 if (x == !y)
5 {
6 // do something
7 }
8}