HomeSort by relevance Sort by last modified time
    Searched refs:decltype (Results 1 - 25 of 123) sorted by null

1 2 3 4 5

  /external/clang/test/Parser/
bracket-crash.cpp 3 decltype(;
  /external/clang/test/CXX/expr/expr.post/expr.type.conv/
p1-0x.cpp 9 decltype(foo())();
10 f = (decltype(foo()))5;
11 return decltype(3)(5);
  /external/clang/test/CodeGenCXX/
debug-info-nullptr.cpp 4 decltype(nullptr) t = 0;
  /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;
cxx11-ast-print.cpp 4 // CHECK: decltype(nullptr) operator "" _foo(const char *p, decltype(sizeof(int)));
5 auto operator"" _foo(const char *p, decltype(sizeof(int))) -> decltype(nullptr);
7 // CHECK: decltype(""_foo) operator "" _bar(unsigned long long);
8 decltype(""_foo) operator"" _bar(unsigned long long);
10 // CHECK: decltype(42_bar) operator "" _baz(long double);
11 decltype(42_bar) operator"" _baz(long double);
13 // CHECK: decltype(4.5_baz) operator "" _baz(char);
14 decltype(4.5_baz) operator"" _baz(char)
    [all...]
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, ""); }
  /external/clang/test/CXX/conv/conv.prom/
p2.cpp 10 extern decltype(+L'a') promoted_wchar;
13 extern decltype(+u'a') promoted_char16;
16 extern decltype(+U'a') promoted_char32;
p4.cpp 4 extern decltype(+A) x;
8 extern decltype(+C) y;
  /external/clang/test/CXX/expr/expr.prim/expr.prim.general/
p8-0x.cpp 23 operator decltype(outer::middle::inner()) ();
24 operator decltype(outer::middle())::inner2 ();
25 operator decltype(outer())::middle::inner3 ();
26 str(int (decltype(outer::middle::inner())::*n)(),
27 int (decltype(outer::middle())::inner::*o)(),
28 int (decltype(outer())::middle::inner::*p)());
31 decltype(outer::middle::inner()) a;
33 a.decltype(outer::middle())::mfunc(); // expected-error{{'PR10127::outer::middle::mfunc' is not a member of class 'decltype(outer::middle::inner())'}}
34 a.decltype(outer::middle::inner())::func()
    [all...]
  /external/clang/test/CXX/special/class.dtor/
p10-0x.cpp 8 x->~decltype(T())();
9 x->~decltype(*x)(); // expected-error{{the type of object expression ('const int') does not match the type being destroyed ('decltype(*x)' (aka 'const int &')) in pseudo-destructor expression}} \
11 x->~decltype(int())(); // expected-error{{no member named '~int' in 'A'}}
13 y->~decltype(*y)(); // expected-error{{destructor type 'decltype(*y)' (aka 'const A &') in object destruction expression does not match the type 'const A' of the object being destroyed}}
14 y->~decltype(T())(); // expected-error{{destructor type 'decltype(T())' in object destruction expression does not match the type 'const A' of the object being destroyed}}
15 y->~decltype(A())();
20 x->~decltype(A())()
    [all...]
  /external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
p18.cpp 20 static_assert(is_same<decltype(((r))), float const&>::value,
22 static_assert(is_same<decltype(x), float>::value, "should be float");
23 static_assert(is_same<decltype((x)), const float&>::value,
25 static_assert(is_same<decltype(r), float&>::value, "should be float&");
26 static_assert(is_same<decltype(ir), int&>::value, "should be int&");
27 static_assert(is_same<decltype((ir)), int&>::value, "should be int&");
28 static_assert(is_same<decltype(irc), const int&>::value,
30 static_assert(is_same<decltype((irc)), const int&>::value,
36 static_assert(is_same<decltype(x), float>::value, "should be float");
37 static_assert(is_same<decltype((x)), float&>::value,
    [all...]
p3.cpp 5 decltype(lambda) foo = { 1 }; // expected-error{{no matching constructor}}
p19.cpp 13 decltype(lambda1) lambda2; // expected-error{{call to implicitly-deleted default constructor of 'decltype(lambda1)' (aka '<lambda}}
22 decltype(lambda1) lambda3 = lambda1;
23 decltype(lambda1) lambda4(lambda1);
26 decltype(lambda1) lambda5 = move(lambda1);
27 decltype(lambda1) lambda6(move(lambda1));
  /external/clang/test/CXX/dcl.decl/dcl.meaning/
p1-0x.cpp 3 // The nested-name-specifier of a qualified declarator-id shall not begin with a decltype-specifier.
9 int decltype(foo())::i; // expected-error{{'decltype' cannot be used to name a declaration}}
10 void decltype(foo())::func() { // expected-error{{'decltype' cannot be used to name a declaration}}
21 int decltype(tfoo<T>())::i; // expected-error{{nested name specifier 'decltype(tfoo<T>())::' for declaration does not refer into a class, class template or class template partial specialization}}
23 void decltype(tfoo<T>())::func() { // expected-error{{nested name specifier 'decltype(tfoo<T>())::' for declaration does not refer into a class, class template or class template partial specialization}}
  /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/class.derived/
p1.cpp 12 // class-or-decltype:
14 // decltype-specifier
16 // class-or-decltype
24 struct Derived : decltype(Base()) { };
27 struct Derived2 : decltype(func()) { }; // expected-error {{base specifier must name a class}}
30 struct Derived3 : decltype(T().foo()) { };
34 struct Derived4 : :: decltype(Base()) { }; // expected-error {{unexpected namespace scope prior to decltype}}
36 struct Derived5 : PR11216:: decltype(Base()) { }; // expected-error {{unexpected namespace scope prior to decltype}}
    [all...]
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/
p5-cxx0x.cpp 8 template<class T> auto f(T) -> decltype(i(h<T>())); // #1
13 template<class T> auto q(T) -> decltype((h<T>()));
34 decltype(PD()) s; // ok
35 decltype(PD())::n n; // ok
36 decltype(DD()) *p = new decltype(DD()); // ok
39 // Two errors here: one for the decltype, one for the variable.
40 decltype(
43 decltype(DD(), // expected-error {{deleted function}}
45 decltype(
    [all...]
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, "");
22 static_assert(is_same<decltype(static_cast<int&&>(i)), int&&>::value, "");
27 decltype(f0) f0_a; // expected-error{{reference to overloaded function could not be resolved; did you mean to call it?}}
  /external/clang/test/PCH/
cxx11-exception-spec.cpp 9 decltype(f<false>()) a;
10 decltype(f<true>()) b;
  /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/
instantiation-depth-subst.cpp 4 template<typename T> auto f(T t) -> decltype(f(t)); // \
  /external/clang/test/CXX/stmt.stmt/stmt.ambig/
p1-0x.cpp 31 decltype(T())(a)->m = 7;
32 decltype(T())(a)++;
33 decltype(T())(a,5)<<c;
35 decltype(T())(*d)(int);
36 decltype(T())(e)[5];
37 decltype(T())(f) = {1, 2};
38 decltype(T())(*g)(double(3)); // expected-error{{cannot initialize a variable of type 'decltype(T()) (*)' (aka 'T *') with an rvalue of type 'double'}}
  /external/clang/test/CXX/lex/lex.literal/lex.ext/
p7.cpp 3 using size_t = decltype(sizeof(int));
22 same_type<decltype(v1), long double> test1;
23 same_type<decltype(v2), std::string> test2;
24 same_type<decltype(v3), unsigned> test3;

Completed in 1021 milliseconds

1 2 3 4 5