Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:auto

15 auto f() -> int
20 auto g(); // expected-error{{return without trailing return type}}
22 int h() -> int; // expected-error{{trailing return type must specify return type 'auto', not 'int'}}
25 auto i() -> int;
28 using T = auto (int) -> auto (*)(char) -> void; // expected-note {{previous}}
29 using T = void; // expected-error {{type alias redefinition with different types ('void' vs 'auto (int) -> auto (*)(char) -> void')}}
31 using U = auto (int) -> auto (*)(char) -> void;
37 auto i(T x) -> decltype(x)
47 auto f(T x) -> T { return x; }
50 auto g(T x, U y) -> decltype(x + y)
58 auto h(T x, U y, V z) -> decltype(x + y + z)
75 auto f1(T t) -> decltype(f1(t)) {} // expected-note{{candidate template ignored}}
82 auto f2(T t) -> decltype(f2(&t)) {} // expected-note{{candidate template ignored}}