OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:comparison
(Results
1 - 25
of
3952
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/clang/test/SemaCXX/
warn-unused-comparison.cpp
1
// RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -verify -Wno-unused -Wunused-
comparison
%s
18
x == 7; // expected-warning {{equality
comparison
result unused}} \
19
// expected-note {{use '=' to turn this equality
comparison
into an assignment}}
20
x != 7; // expected-warning {{inequality
comparison
result unused}} \
21
// expected-note {{use '|=' to turn this inequality
comparison
into an or-assignment}}
22
x < 7; // expected-warning {{relational
comparison
result unused}}
23
x > 7; // expected-warning {{relational
comparison
result unused}}
24
x <= 7; // expected-warning {{relational
comparison
result unused}}
25
x >= 7; // expected-warning {{relational
comparison
result unused}}
27
7 == x; // expected-warning {{equality
comparison
result unused}
[
all
...]
warn-enum-compare.cpp
42
while (x == AnonAA); // expected-warning {{
comparison
of constant 'AnonAA' (42) with expression of type 'Foo' is always false}}
43
while (AnonBB == y); // expected-warning {{
comparison
of constant 'AnonBB' (45) with expression of type 'Bar' is always false}}
68
while (B1 == B2); // expected-warning {{
comparison
of two values with different enumeration types ('name1::Baz' and 'name2::Baz')}}
69
while (name1::B2 == name2::B3); // expected-warning {{
comparison
of two values with different enumeration types ('name1::Baz' and 'name2::Baz')}}
70
while (z == name2::B2); // expected-warning {{
comparison
of two values with different enumeration types ('name1::Baz' and 'name2::Baz')}}
72
while (((((B1)))) == B2); // expected-warning {{
comparison
of two values with different enumeration types ('name1::Baz' and 'name2::Baz')}}
73
while (name1::B2 == (name2::B3)); // expected-warning {{
comparison
of two values with different enumeration types ('name1::Baz' and 'name2::Baz')}}
74
while (z == ((((name2::B2))))); // expected-warning {{
comparison
of two values with different enumeration types ('name1::Baz' and 'name2::Baz')}}
76
while ((((B1))) == (((B2)))); // expected-warning {{
comparison
of two values with different enumeration types ('name1::Baz' and 'name2::Baz')}}
77
while ((name1::B2) == (((name2::B3)))); // expected-warning {{
comparison
of two values with different enumeration types ('name1::Baz' and 'name2::Baz')}
[
all
...]
self-comparison.cpp
4
return x == x; // expected-warning {{self-
comparison
always evaluates to true}}
16
bool f() { return x == x; } // expected-warning {{self-
comparison
always evaluates to true}}
18
bool h() { return a == b; } // expected-warning {{array
comparison
always evaluates to false}}
21
return a == c; // expected-warning {{array
comparison
always evaluates to false}}
/external/clang/test/Sema/
self-comparison.c
4
return x == x; // expected-warning {{self-
comparison
always evaluates to true}}
8
return (x) != (((x))); // expected-warning {{self-
comparison
always evaluates to false}}
12
if (s == s) {} // expected-warning {{self-
comparison
always evaluates to true}}
17
if (v == v) {} // expected-warning {{self-
comparison
always evaluates to true}}
22
return x < x; // expected-warning {{self-
comparison
}}
26
return x > x; // expected-warning {{self-
comparison
}}
55
return array1 == array1; // expected-warning{{self-
comparison
always evaluates to true}}
56
return array1 != array1; // expected-warning{{self-
comparison
always evaluates to false}}
57
return array1 < array1; // expected-warning{{self-
comparison
always evaluates to false}}
58
return array1 <= array1; // expected-warning{{self-
comparison
always evaluates to true}
[
all
...]
unused-expr-system-header.c
6
COMMA_MACRO_1(i1 == i2, f(i1, i2)); // expected-warning {{
comparison
result unused}} \
7
// expected-note {{equality
comparison
}}
9
COMMA_MACRO_3(i1 == i2, f(i1, i2)); // expected-warning {{
comparison
result unused}} \
10
// expected-note {{equality
comparison
}}
warn-bitwise-compare.c
6
if ((8 & x) == 3) {} // expected-warning {{bitwise
comparison
always evaluates to false}}
7
if ((x & 8) == 4) {} // expected-warning {{bitwise
comparison
always evaluates to false}}
8
if ((x & 8) != 4) {} // expected-warning {{bitwise
comparison
always evaluates to true}}
9
if ((2 & x) != 4) {} // expected-warning {{bitwise
comparison
always evaluates to true}}
10
if ((x | 4) == 3) {} // expected-warning {{bitwise
comparison
always evaluates to false}}
11
if ((x | 3) != 4) {} // expected-warning {{bitwise
comparison
always evaluates to true}}
12
if ((5 | x) != 3) {} // expected-warning {{bitwise
comparison
always evaluates to true}}
13
if ((x & 0x15) == 0x13) {} // expected-warning {{bitwise
comparison
always evaluates to false}}
14
if ((0x23 | x) == 0x155){} // expected-warning {{bitwise
comparison
always evaluates to false}}
outof-range-constant-compare.c
9
if (a == 0x1234567812345678L) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always false}}
11
if (a != 0x1234567812345678L) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always true}}
13
if (a < 0x1234567812345678L) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always true}}
15
if (a <= 0x1234567812345678L) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always true}}
17
if (a > 0x1234567812345678L) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always false}}
19
if (a >= 0x1234567812345678L) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always false}}
22
if (0x1234567812345678L == a) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always false}}
24
if (0x1234567812345678L != a) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always true}}
26
if (0x1234567812345678L < a) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always false}}
28
if (0x1234567812345678L <= a) // expected-warning {{
comparison
of constant 1311768465173141112 with expression of type 'int' is always false}
[
all
...]
bool-compare.c
8
if ((a > 2) > 1) {} // expected-warning {{
comparison
of constant 1 with boolean expression is always false}}
33
if (!a > 1) {} // expected-warning {{
comparison
of constant 1 with boolean expression is always false}}
34
if (!a > 2) {} // expected-warning {{
comparison
of constant 2 with boolean expression is always false}}
37
if (!a > -1) {} // expected-warning {{
comparison
of constant -1 with boolean expression is always true}}
39
if (!a < 0) {} // expected-warning {{
comparison
of constant 0 with boolean expression is always false}}
41
if (!a < 2) {} // expected-warning {{
comparison
of constant 2 with boolean expression is always true}}
44
if (!a < -1) {} // expected-warning {{
comparison
of constant -1 with boolean expression is always false}}
46
if (!a >= 0) {} // expected-warning {{
comparison
of constant 0 with boolean expression is always true}}
48
if (!a >= 2) {} // expected-warning {{
comparison
of constant 2 with boolean expression is always false}}
51
if (!a >= -1) {} // expected-warning {{
comparison
of constant -1 with boolean expression is always true}
[
all
...]
compare.c
7
return C != 1; // expected-warning {{
comparison
between pointer and integer ('char *' and 'int')}}
16
(a == (unsigned long) b) + // expected-warning {{
comparison
of integers of different signs}}
20
((long) a == b) + // expected-warning {{
comparison
of integers of different signs}}
21
((int) a == b) + // expected-warning {{
comparison
of integers of different signs}}
22
((short) a == b) + // expected-warning {{
comparison
of integers of different signs}}
23
((signed char) a == b) + // expected-warning {{
comparison
of integers of different signs}}
24
((long) a == (unsigned long) b) + // expected-warning {{
comparison
of integers of different signs}}
25
((int) a == (unsigned int) b) + // expected-warning {{
comparison
of integers of different signs}}
28
(a < (unsigned long) b) + // expected-warning {{
comparison
of integers of different signs}}
32
((long) a < b) + // expected-warning {{
comparison
of integers of different signs}
[
all
...]
/external/clang/test/Parser/
pointer_promotion.c
11
if (ip < cp) {} // expected-warning {{
comparison
of distinct pointer types ('int *' and 'char *')}}
12
if (cp < fp) {} // expected-warning {{
comparison
of distinct pointer types ('char *' and 'struct foo *')}}
13
if (fp < bp) {} // expected-warning {{
comparison
of distinct pointer types ('struct foo *' and 'struct bar *')}}
14
if (ip < 7) {} // expected-warning {{
comparison
between pointer and integer ('int *' and 'int')}}
15
if (sint < ip) {} // expected-warning {{
comparison
between pointer and integer ('int' and 'int *')}}
16
if (ip == cp) {} // expected-warning {{
comparison
of distinct pointer types ('int *' and 'char *')}}
/external/chromium_org/third_party/skia/tools/tests/skimage/output-expected/empty-dir/
expectations.json
5
"no-
comparison
" : null,
/external/chromium_org/third_party/skia/tools/tests/skimage/output-expected/nonexistent-dir/
expectations.json
5
"no-
comparison
" : null,
/external/chromium_org/tools/valgrind/gtest_exclude/
media_unittests.gtest-tsan_win32.txt
1
# Win TSan disturbs ffmpeg's output, causing hash
comparison
assertion to fail.
/external/skia/tools/tests/skimage/output-expected/empty-dir/
expectations.json
5
"no-
comparison
" : null,
/external/skia/tools/tests/skimage/output-expected/nonexistent-dir/
expectations.json
5
"no-
comparison
" : null,
/external/chromium_org/third_party/skia/tools/tests/skimage/input/bad-images/
empty-results.json
5
"no-
comparison
" : null,
/external/clang/test/CodeGen/
const-unordered-compare.c
3
// Checks folding of an unordered
comparison
/external/clang/test/Frontend/
Wno-everything.c
6
return x < y; // expected-warning {{
comparison
of integers}}
/external/clang/test/SemaObjC/
comptypes-7.m
49
if (obj == i) foo() ; // expected-warning {{
comparison
between pointer and integer ('id' and 'int')}}
50
if (i == obj) foo() ; // expected-warning {{
comparison
between pointer and integer ('int' and 'id')}}
51
if (obj == j) foo() ; // expected-warning {{
comparison
of distinct pointer types ('id' and 'int *')}}
52
if (j == obj) foo() ; // expected-warning {{
comparison
of distinct pointer types ('int *' and 'id')}}
54
if (obj_c == i) foo() ; // expected-warning {{
comparison
between pointer and integer ('MyClass *' and 'int')}}
55
if (i == obj_c) foo() ; // expected-warning {{
comparison
between pointer and integer ('int' and 'MyClass *')}}
56
if (obj_c == j) foo() ; // expected-warning {{
comparison
of distinct pointer types ('MyClass *' and 'int *')}}
57
if (j == obj_c) foo() ; // expected-warning {{
comparison
of distinct pointer types ('int *' and 'MyClass *')}}
59
if (obj_p == i) foo() ; // expected-warning {{
comparison
between pointer and integer ('id<MyProtocol>' and 'int')}}
60
if (i == obj_p) foo() ; // expected-warning {{
comparison
between pointer and integer ('int' and 'id<MyProtocol>')}
[
all
...]
/external/libcxx/test/numerics/numarray/valarray.nonmembers/valarray.comparison/
Android.mk
17
test_makefile := external/libcxx/test/numerics/numarray/valarray.nonmembers/valarray.
comparison
/Android.mk
19
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/greater_equal_valarray_valarray
23
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/and_valarray_value
27
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/equal_value_valarray
31
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/not_equal_value_valarray
35
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/less_valarray_valarray
39
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/or_value_valarray
43
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/less_equal_valarray_valarray
47
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/not_equal_valarray_valarray
51
test_name := numerics/numarray/valarray.nonmembers/valarray.
comparison
/equal_valarray_valu
[
all
...]
/external/skia/tools/tests/skimage/input/bad-images/
empty-results.json
5
"no-
comparison
" : null,
/external/iptables/include/linux/netfilter/
xt_multiport.h
16
__u8 flags; /* Type of
comparison
*/
22
__u8 flags; /* Type of
comparison
*/
/external/kernel-headers/original/uapi/linux/netfilter/
xt_multiport.h
16
__u8 flags; /* Type of
comparison
*/
22
__u8 flags; /* Type of
comparison
*/
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/sysroot/usr/include/linux/netfilter/
xt_multiport.h
18
__u8 flags; /* Type of
comparison
*/
25
__u8 flags; /* Type of
comparison
*/
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/netfilter/
xt_multiport.h
18
__u8 flags; /* Type of
comparison
*/
25
__u8 flags; /* Type of
comparison
*/
Completed in 686 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>