/external/clang/test/CodeGenCXX/ |
debug-info-nullptr.cpp | 7 decltype(nullptr) t = 0;
|
mangle-exprs.cpp | 28 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())) {} 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(x()) y) [all...] |
nullptr.cpp | 12 typedef decltype(nullptr) nullptr_t;
|
mangle.cpp | 381 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(nullptr)) { 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/ |
decltype-crash.cpp | 6 decltype(a()) c; // expected-warning {{'decltype' is a keyword in C++11}} expected-error {{use of undeclared identifier 'decltype'}}
|
decltype-pr4444.cpp | 5 typedef decltype(t+2) sum_type;
|
decltype-overloaded-functions.cpp | 5 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}}
|
decltype-this.cpp | 12 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, ""); }
|
decltype-pr4448.cpp | 3 template< typename T, T t, decltype(t+2) v >
|
decltype.cpp | 6 decltype(0, f0()) i = 0; 21 A(decltype(nullptr) param);
|
trailing-return-0x.cpp | 27 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)
|
underlying_type.cpp | 26 static_assert(is_same_type<char, decltype(h)>::value,
|
/external/clang/test/Driver/ |
std.cpp | 11 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/ |
p4-cxx0x.cpp | 18 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/ |
p1-0x.cpp | 10 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/ |
canonical-expr-type-0x.cpp | 10 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}}
|
alias-templates.cpp | 13 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/ |
annotate-tokens-cxx0x.cpp | 8 decltype(a) b; 15 // RUN: c-index-test -test-annotate-tokens=%s:8:1:9:1 -std=c++11 %s | FileCheck -check-prefix=CHECK-DECLTYPE %s 16 // CHECK-DECLTYPE: Identifier: "a" [8:12 - 8:13] DeclRefExpr=a:7:7
|
/external/clang/test/CXX/expr/expr.prim/ |
p4-0x.cpp | 5 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/ |
p2.cpp | 13 typedef auto Fun(int a) -> decltype(a + a); 14 typedef auto (*PFun)(int a) -> decltype(a + a);
|
p5.cpp | 20 typedef auto Fun(int a) -> decltype(a + a);
|
/external/clang/test/Lexer/ |
cxx0x_keyword_as_cxx98.cpp | 17 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/ |
cxx-alias-decl.cpp | 11 using T1 = decltype(a);
|
/external/clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/ |
p1.cpp | 5 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
|
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
p2.cpp | 44 using VTest = decltype(v);
|