Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:consume

4 void consume(const char* c) {}
5 void consume(const unsigned char* c) {}
6 void consume(const wchar_t* c) {}
31 consume("foo" + 5); // expected-warning {{adding 'int' to a string does not append to the string}} expected-note {{use array indexing to silence this warning}}
32 consume("foo" + index); // expected-warning {{adding 'int' to a string does not append to the string}} expected-note {{use array indexing to silence this warning}}
33 consume("foo" + kMyEnum); // expected-warning {{adding 'MyEnum' to a string does not append to the string}} expected-note {{use array indexing to silence this warning}}
35 consume(5 + "foo"); // expected-warning {{adding 'int' to a string does not append to the string}} expected-note {{use array indexing to silence this warning}}
36 consume(index + "foo"); // expected-warning {{adding 'int' to a string does not append to the string}} expected-note {{use array indexing to silence this warning}}
37 consume(kMyEnum + "foo"); // expected-warning {{adding 'MyEnum' to a string does not append to the string}} expected-note {{use array indexing to silence this warning}}
43 consume(L"foo" + 5); // expected-warning {{adding 'int' to a string does not append to the string}} expected-note {{use array indexing to silence this warning}}
46 consume(&("foo"[3]));
47 consume(&("foo"[index]));
48 consume(&("foo"[kMyEnum]));
49 consume("foo" + kMySmallEnum);
50 consume(kMySmallEnum + "foo");
52 consume(L"foo" + 2);
54 consume("foo" + 3); // Points at the \0
55 consume("foo" + 4); // Points 1 past the \0, which is legal too.
56 consume("\pfoo" + 4); // Pascal strings don't have a trailing \0, but they
59 consume("foo" + kMyOperatorOverloadedEnum);
60 consume(kMyOperatorOverloadedEnum + "foo");
64 consume(A B + sizeof(A) - 1);