Searched refs:decltype (Results 1 - 25 of 35) sorted by relevance

12

/external/clang/test/CodeGenCXX/
H A Ddebug-info-nullptr.cpp7 decltype(nullptr) t = 0;
H A Dmangle-exprs.cpp28 void auto_(decltype(new auto(T()))) { function in namespace:Casts
58 template <class T> auto a(T t) -> decltype(foo(T())) { return foo(t); }
61 template <class T> auto b(T t) -> decltype((foo)(T())) { return (foo)(t); } function in namespace:test1
70 template <class T> void a(T x, decltype(x()) y) {}
71 template <class T> auto b(T x) -> decltype(x()) { return x(); }
72 template <class T> void c(T x, void (*p)(decltype(x()))) {}
73 template <class T> void d(T x, auto (*p)() -> decltype(x())) {} argument
74 template <class T> void e(auto (*p)(T y) -> decltype(y())) {}
75 template <class T> void f(void (*p)(T x, decltype(x()) y)) {}
76 template <class T> void g(T x, decltype(
[all...]
H A Dnullptr.cpp12 typedef decltype(nullptr) nullptr_t;
H A Dmangle.cpp381 template <class T> decltype(((T*) 0)->member) read_member(T& obj) {
401 template <class T> decltype(((T*) 0)->Path1::ab) get_ab_1(T &ref) { return ref.Path1::ab; }
404 template <class T> decltype(((T*) 0)->Path2::ab) get_ab_2(T &ref) { return ref.Path2::ab; }
407 template <class T> decltype(((T*) 0)->Path1::p) get_p_1(T &ref) { return ref.Path1::p; }
410 template <class T> decltype(((T*) 0)->Path2::p) get_p_2(T &ref) { return ref.Path2::p; }
612 template <class T> void test0(decltype(f<T*>(0))) {} function in namespace:test20
613 template void test0<int>(decltype(f<int*>(0)));
616 template <class T> void test1(decltype(f<>(T()))) {} function in namespace:test20
617 template void test1<int>(decltype(f<>(int())));
628 void f(decltype(nullpt function in namespace:test22
746 template<class T> auto f1(T p)->decltype(x) { return 0; } function in namespace:test31
749 template<class T> auto f2(T p)->decltype(p) { return 0; } function in namespace:test31
798 void f(decltype(sizeof(decltype(T() + T())))) {} function in namespace:test34
835 void f1(decltype(sizeof(&T::template operator+<int>))) {} function in namespace:test35
[all...]
/external/clang/test/SemaCXX/
H A Ddecltype-crash.cpp6 decltype(a()) c; // expected-warning {{'decltype' is a keyword in C++11}} expected-error {{use of undeclared identifier 'decltype'}}
H A Ddecltype-pr4444.cpp5 typedef decltype(t+2) sum_type;
H A Ddecltype-overloaded-functions.cpp5 decltype(f) a; // expected-error{{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}} expected-error {{variable has incomplete type 'decltype(f())' (aka 'void')}}
8 decltype(T::f) * f; // expected-error{{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}} expected-error {{call to non-static member function without an object argument}}
H A Ddecltype-this.cpp12 void f() { static_assert(is_same<decltype(this), S*>::value, ""); }
13 void g() const { static_assert(is_same<decltype(this), const S*>::value, ""); }
14 void h() volatile { static_assert(is_same<decltype(this), volatile S*>::value, ""); }
15 void i() const volatile { static_assert(is_same<decltype(this), const volatile S*>::value, ""); }
H A Ddecltype-pr4448.cpp3 template< typename T, T t, decltype(t+2) v >
H A Ddecltype.cpp6 decltype(0, f0()) i = 0;
21 A(decltype(nullptr) param);
H A Dtrailing-return-0x.cpp27 auto i(T x) -> decltype(x) function
40 auto g(T x, U y) -> decltype(x + y)
48 auto h(T x, U y, V z) -> decltype(x + y + z)
H A Dunderlying_type.cpp26 static_assert(is_same_type<char, decltype(h)>::value,
/external/clang/test/Driver/
H A Dstd.cpp11 decltype(n)();
15 // CXX98: undeclared identifier 'decltype'
18 // GNUXX98: undeclared identifier 'decltype'
21 // CXX11-NOT: undeclared identifier 'decltype'
24 // GNUXX11-NOT: undeclared identifier 'decltype'
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/
H A Dp4-cxx0x.cpp18 static_assert(is_same<decltype(foo()), const int&&>::value, "");
19 static_assert(is_same<decltype(i), int>::value, "");
20 static_assert(is_same<decltype(a->x), double>::value, "");
21 static_assert(is_same<decltype((a->x)), const double&>::value, "");
/external/clang/test/CXX/temp/temp.type/
H A Dp1-0x.cpp10 using SameType = decltype(y); // expected-note {{here}}
11 using SameType = decltype(z); // expected-error {{different types}}
21 using SameType = decltype(y);
22 using SameType = decltype(z); // ok
/external/clang/test/SemaTemplate/
H A Dcanonical-expr-type-0x.cpp10 void f0(T x, decltype(f(N)) y) { } // expected-note{{previous}}
13 void f0(T x, decltype((f)(N)) y) { }
16 void f0(U u, decltype(f(M))) { } // expected-error{{redefinition}}
H A Dalias-templates.cpp13 typedef decltype(D<B>().g) H;
15 template<typename T> using I = A<decltype(h.g)>;
16 template<typename T> using J = typename A<decltype(h.g)>::template C<I<T>>;
27 typedef decltype(val(make<thing>())) inner_ptr;
/external/clang/test/Index/
H A Dannotate-tokens-cxx0x.cpp8 decltype(a) b;
/external/clang/test/CXX/expr/expr.prim/
H A Dp4-0x.cpp5 decltype(this) q; // expected-error {{invalid use of 'this' outside of a nonstatic member function}} \
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp2.cpp13 typedef auto Fun(int a) -> decltype(a + a);
14 typedef auto (*PFun)(int a) -> decltype(a + a);
H A Dp5.cpp20 typedef auto Fun(int a) -> decltype(a + a);
/external/clang/test/Lexer/
H A Dcxx0x_keyword_as_cxx98.cpp17 extern int ID(decltype); // expected-warning {{'decltype' is a keyword in C++11}}
32 int decltype; // already diagnosed in this TU variable
/external/clang/test/PCH/
H A Dcxx-alias-decl.cpp11 using T1 = decltype(a);
/external/clang/test/CXX/except/except.spec/
H A Dp3.cpp101 typedef decltype(sizeof(int)) mysize_t;
/external/clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/
H A Dp1.cpp5 auto begin(T &&t) -> decltype(t.begin()) { return t.begin(); } // expected-note 4{{ignored: substitution failure}} function in namespace:std
7 auto end(T &&t) -> decltype(t.end()) { return t.end(); } // expected-note {{candidate template ignored: substitution failure [with T = }} function in namespace:std
10 auto begin(T &&t) -> decltype(t.alt_begin()) { return t.alt_begin(); } // expected-note {{selected 'begin' template [with T = }} \ function in namespace:std
13 auto end(T &&t) -> decltype(t.alt_end()) { return t.alt_end(); } // expected-note {{candidate template ignored: substitution failure [with T = }} function in namespace:std

Completed in 231 milliseconds

12