Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:str

11   const char *str;
13 HasCStr(const char *s): str(s) { }
14 const char *c_str() {return str;}
18 const char *str;
20 HasNoCStr(const char *s): str(s) { }
21 const char *not_c_str() {return str;}
26 char str[] = "test";
29 HasCStr hcs(str);
30 HasNoCStr hncs(str);
36 sprintf(str, "%d: %s", n, hcs); // expected-warning{{cannot pass non-POD object of type 'HasCStr' to variadic function; expected type from format string was 'char *'}} expected-note{{did you mean to call the c_str() method?}}
49 const char str[] = "test";
50 HasCStr hcs(str);
51 Printf p("%s %d %s", str, 10, 10); // expected-warning {{format specifies type 'char *' but the argument has type 'int'}}