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
3417
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/clang/test/SemaCXX/
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
...]
warn-unused-comparison.cpp
1
// RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -verify -Wno-unused -Wunused-
comparison
%s
14
x == 7; // expected-warning {{equality
comparison
result unused}} \
15
// expected-note {{use '=' to turn this equality
comparison
into an assignment}}
16
x != 7; // expected-warning {{inequality
comparison
result unused}} \
17
// expected-note {{use '|=' to turn this inequality
comparison
into an or-assignment}}
18
7 == x; // expected-warning {{equality
comparison
result unused}}
19
p == p; // expected-warning {{equality
comparison
result unused}} \
20
// expected-note {{use '=' to turn this equality
comparison
into an assignment}} \
21
// expected-warning {{self-
comparison
always evaluates to true}}
22
a == a; // expected-warning {{equality
comparison
result unused}}
[
all
...]
compare.cpp
12
(a == (unsigned long) b) + // expected-warning {{
comparison
of integers of different signs}}
16
((long) a == b) + // expected-warning {{
comparison
of integers of different signs}}
17
((int) a == b) + // expected-warning {{
comparison
of integers of different signs}}
18
((short) a == b) + // expected-warning {{
comparison
of integers of different signs}}
19
((signed char) a == b) + // expected-warning {{
comparison
of integers of different signs}}
20
((long) a == (unsigned long) b) + // expected-warning {{
comparison
of integers of different signs}}
21
((int) a == (unsigned int) b) + // expected-warning {{
comparison
of integers of different signs}}
24
(a < (unsigned long) b) + // expected-warning {{
comparison
of integers of different signs}}
28
((long) a < b) + // expected-warning {{
comparison
of integers of different signs}}
29
((int) a < b) + // expected-warning {{
comparison
of integers of different signs}
[
all
...]
warn-assignment-condition.cpp
16
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
21
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
26
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
31
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
36
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
41
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
46
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
50
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
62
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
67
// expected-note{{use '==' to turn this assignment into an equality
comparison
}} \
[
all
...]
/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
}}
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
...]
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
...]
ext_vector_comparisons.c
9
return vec == vec; // expected-warning{{self-
comparison
always evaluates to a constant}}
10
return vec != vec; // expected-warning{{self-
comparison
always evaluates to a constant}}
11
return vec < vec; // expected-warning{{self-
comparison
always evaluates to a constant}}
12
return vec <= vec; // expected-warning{{self-
comparison
always evaluates to a constant}}
13
return vec > vec; // expected-warning{{self-
comparison
always evaluates to a constant}}
14
return vec >= vec; // expected-warning{{self-
comparison
always evaluates to a constant}}
/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/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/kernel-headers/original/linux/netfilter/
xt_multiport.h
16
u_int8_t flags; /* Type of
comparison
*/
23
u_int8_t flags; /* Type of
comparison
*/
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/netfilter/
xt_multiport.h
16
u_int8_t flags; /* Type of
comparison
*/
23
u_int8_t flags; /* Type of
comparison
*/
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/netfilter/
xt_multiport.h
16
u_int8_t flags; /* Type of
comparison
*/
23
u_int8_t flags; /* Type of
comparison
*/
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/netfilter/
xt_multiport.h
16
u_int8_t flags; /* Type of
comparison
*/
23
u_int8_t flags; /* Type of
comparison
*/
/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}}
Weverything.c
8
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
...]
objc-literal-comparison.m
39
if (obj == @"") return; // expected-warning{{direct
comparison
of a string literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
40
if (obj != @"") return; // expected-warning{{direct
comparison
of a string literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
41
if (@"" == obj) return; // expected-warning{{direct
comparison
of a string literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
42
if (@"" == @"") return; // expected-warning{{direct
comparison
of a string literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
44
if (@[] == obj) return; // expected-warning{{direct
comparison
of an array literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
45
if (@{} == obj) return; // expected-warning{{direct
comparison
of a dictionary literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
46
if (@12 == obj) return; // expected-warning{{direct
comparison
of a numeric literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
47
if (@1.0 == obj) return; // expected-warning{{direct
comparison
of a numeric literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
48
if (@__objc_yes == obj) return; // expected-warning{{direct
comparison
of a numeric literal has undefined behavior}} expected-note{{use 'isEqual:' instead}}
49
if (@(1+1) == obj) return; // expected-warning{{direct
comparison
of a boxed expression has undefined behavior}} expected-note{{use 'isEqual:' instead}
[
all
...]
/external/iptables/include/linux/netfilter/
xt_multiport.h
16
__u8 flags; /* Type of
comparison
*/
22
__u8 flags; /* Type of
comparison
*/
/external/clang/test/SemaTemplate/
self-comparison.cpp
4
(void)(A == A); // expected-warning {{self-
comparison
always evaluates to true}}
9
(void)(A == A); // expected-warning {{self-
comparison
always evaluates to true}}
16
(void)(A == A); // expected-warning {{self-
comparison
always evaluates to true}}
23
(void)(A == A); // expected-warning {{self-
comparison
always evaluates to true}}
30
(void)(A == A); // expected-warning {{self-
comparison
always evaluates to true}}
/external/chromium_org/crypto/
secure_util.h
14
// Performs a constant-time
comparison
of two strings, returning true if the
17
// For cryptographic operations,
comparison
functions such as memcmp() may
20
// order to avoid such attacks, the
comparison
must execute in constant time,
Completed in 1689 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>