Searched defs:decltype (Results 1 - 18 of 18) sorted by relevance

/external/clang/test/CodeGenCXX/
H A Dcxx11-user-defined-literal.cpp4 using size_t = decltype(sizeof(int));
49 template<typename T> auto g(T t) -> decltype("foo"_x(t)) { return "foo"_x(t); }
50 template<typename T> auto i(T t) -> decltype(operator"" _x("foo", 3)(t)) { return operator"" _x("foo", 3)(t); } function
H A Dmangle-exprs.cpp4 typedef decltype(sizeof(int)) size_t;
60 void auto_(decltype(new auto(T()))) { function in namespace:Casts
64 void scalar_(decltype(T(), int())) {
97 template <class T> auto a(T t) -> decltype(foo(T())) { return foo(t); }
100 template <class T> auto b(T t) -> decltype((foo)(T())) { return (foo)(t); } function in namespace:test1
109 template <class T> void a(T x, decltype(x()) y) {}
110 template <class T> auto b(T x) -> decltype(x()) { return x(); }
111 template <class T> void c(T x, void (*p)(decltype(x()))) {}
112 template <class T> void d(T x, auto (*p)() -> decltype(x())) {} argument
113 template <class T> void e(auto (*p)(T y) -> decltype(
197 template <typename T> void a(decltype(noexcept(T()))) {} function in namespace:test5
[all...]
H A Dmangle-ms-cxx11.cpp13 namespace std { typedef decltype(__nullptr) nullptr_t; }
43 decltype(Enum) *UseEnum() { return &Enum; }
44 decltype(BoolEnum) *UseBoolEnum() { return &BoolEnum; }
45 decltype(CharEnum) *UseCharEnum() { return &CharEnum; }
46 decltype(SCharEnum) *UseSCharEnum() { return &SCharEnum; }
47 decltype(UCharEnum) *UseUCharEnum() { return &UCharEnum; }
48 decltype(SShortEnum) *UseSShortEnum() { return &SShortEnum; }
49 decltype(UShortEnum) *UseUShortEnum() { return &UShortEnum; }
50 decltype(SIntEnum) *UseSIntEnum() { return &SIntEnum; }
51 decltype(UIntEnu
100 decltype(a) fun(decltype(a) x, decltype(a)) { return x; } function in namespace:PR18022
[all...]
H A Dmangle.cpp386 template <class T> decltype(((T*) 0)->member) read_member(T& obj) {
406 template <class T> decltype(((T*) 0)->Path1::ab) get_ab_1(T &ref) { return ref.Path1::ab; }
409 template <class T> decltype(((T*) 0)->Path2::ab) get_ab_2(T &ref) { return ref.Path2::ab; }
412 template <class T> decltype(((T*) 0)->Path1::p) get_p_1(T &ref) { return ref.Path1::p; }
415 template <class T> decltype(((T*) 0)->Path2::p) get_p_2(T &ref) { return ref.Path2::p; }
617 template <class T> void test0(decltype(f<T*>(0))) {} function in namespace:test20
618 template void test0<int>(decltype(f<int*>(0)));
621 template <class T> void test1(decltype(f<>(T()))) {} function in namespace:test20
622 template void test1<int>(decltype(f<>(int())));
633 void f(decltype(nullpt function in namespace:test22
751 template<class T> auto f1(T p)->decltype(x) { return 0; } function in namespace:test31
754 template<class T> auto f2(T p)->decltype(p) { return 0; } function in namespace:test31
803 void f(decltype(sizeof(decltype(T() + T())))) {} function in namespace:test34
840 void f1(decltype(sizeof(&T::template operator+<int>))) {} function in namespace:test35
[all...]
/external/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/
H A Dc++98.cc15 decltype, enumerator in enum:cxx11_keywords
/external/clang/test/CXX/expr/expr.prim/expr.prim.general/
H A Dp4-0x.cpp5 decltype(this) q; // expected-error {{invalid use of 'this' outside of a non-static member function}}
10 typedef auto f() -> decltype(this); // expected-error {{invalid use of 'this' outside of a non-static member function}} typedef in struct:S
H A Dp3-0x.cpp8 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f(this->ptr));
9 auto g2() const noexcept(noexcept(f((*this).ptr))) -> decltype(f(ptr));
21 template<class T> auto f(T t) -> decltype(t + g())
25 template auto B::f(int t) -> decltype(t + g());
33 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f(ptr));
34 auto g2() const noexcept(noexcept(f(((this))->ptr))) -> decltype(f(ptr));
35 auto g3() noexcept(noexcept(f(this->ptr))) -> decltype(f((*this).ptr));
36 auto g4() const noexcept(noexcept(f(((this))->ptr))) -> decltype(f(this->ptr));
37 auto g5() noexcept(noexcept(this->f(ptr))) -> decltype(this->f(ptr));
38 auto g6() const noexcept(noexcept(this->f(((this))->ptr))) -> decltype(thi
67 auto g() -> decltype(this->f()) { return f(); } function in struct:PR14263::X
68 auto g() const -> decltype(this->f()) { return f(); } function in struct:PR14263::X
120 auto X1::h() -> decltype(m) { return 0; } // expected-error{{'this' cannot be implicitly used in a static member function declaration}} function in namespace:Static
[all...]
/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
H A Dkeywords_test.cpp18 CXX11_KEYWORD(decltype); variable
/external/clang/test/SemaCXX/
H A Dtrailing-return-0x.cpp21 decltype(auto) g2(); // expected-warning{{extension}} expected-error-re{{{{^}}deduced return types are a C++1y extension}}
39 auto i(T x) -> decltype(x) function
52 auto g(T x, U y) -> decltype(x + y)
60 auto h(T x, U y, V z) -> decltype(x + y + z)
77 auto f1(T t) -> decltype(f1(t)) {} // expected-note{{candidate template ignored}}
84 auto f2(T t) -> decltype(f2(&t)) {} // expected-note{{candidate template ignored}}
95 auto f() -> decltype(+*this); // expected-note {{here}}
96 auto f() -> decltype((*this)[0]); // expected-error {{cannot be overloaded}}
103 auto g()->decltype(this->f<0>());
H A Dclass-base-member-init.cpp83 A() : decltype(Base(1))(3) {
86 decltype(Base(1))(2), // expected-error {{multiple initializations given for base 'decltype(test5::Base(1))' (aka 'test5::Base')}}
87 decltype(int())() { // expected-error {{constructor initializer 'decltype(int())' (aka 'int') does not name a class}} function in struct:test5::A
89 A(float) : decltype(A())(3) {
H A Dfor-range-examples.cpp61 decltype(sizeof(char)) size;
87 auto operator*() const -> decltype(f(*i)) { return f(*i); } function in class:map_range::map_iter
112 auto map(const F &f, T &t) -> iter_pair<map_iter<F, decltype(t.begin())>> {
113 typedef map_iter<F, decltype(t.begin())> iter;
H A Dcxx1y-deduced-return-type.cpp46 using T = decltype(a());
49 using T = decltype(a());
89 using Void = decltype(void_ret());
123 typedef decltype(f2(1.2)) dbl; // expected-note {{previous}}
124 typedef float dbl; // expected-error {{typedef redefinition with different types ('float' vs 'decltype(f2(1.2))' (aka 'double &'))}}
276 using size_t = decltype(sizeof(0));
333 decltype(auto) f(); // expected-error {{cannot be overloaded}}
425 using T = decltype(f(A<int>()));
426 using T = decltype(f<int>(A<int>()));
457 auto foo(T x) -> decltype( function in namespace:rnk
[all...]
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
H A Dp11-1y.cpp7 using T = decltype(f);
11 using T = decltype(f);
23 (void) [c("bar")] () -> decltype(c) { // outer c, not init-capture function
61 using T = decltype(c);
69 template<typename T> decltype(auto) move(T &&t) { return static_cast<typename remove_reference<T>::type&&>(t); }
/external/clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/
H A Dp1.cpp17 auto begin(T &&t) -> decltype(t.begin()) { return t.begin(); } // expected-note 2{{ignored: substitution failure}} function in namespace:X
19 auto end(T &&t) -> decltype(t.end()) { return t.end(); } // expected-note {{candidate template ignored: substitution failure [with T = }} function in namespace:X
22 auto begin(T &&t) -> decltype(t.alt_begin()) { return t.alt_begin(); } // expected-note {{selected 'begin' template [with T = }} \ function in namespace:X
25 auto end(T &&t) -> decltype(t.alt_end()) { return t.alt_end(); } // expected-note {{candidate template ignored: substitution failure [with T = }} function in namespace:X
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dmulti-level-substitution.cpp196 constexpr auto f1(A ...a) const -> decltype(g(A(a + B())...)) { return g(A(a + B())...); }
199 constexpr auto f2(A ...a, B ...b) const -> decltype(g((&a)[b] ...)) { return g((&a)[b] ...); } // expected-note {{past-the-end}} function in struct:PacksAtDifferentLevels::PR13811::X6
203 constexpr auto f(A ...a, B ...b, C ...c) const -> decltype(g(a+b+c...)) { return g(a+b+c...); }
/external/clang/test/SemaTemplate/
H A Dms-lookup-template-base-classes.cpp269 auto foo(int j) -> decltype(y * j) { // expected-warning {{lookup into dependent bases}} function in struct:nonmethod_missing_this::Derived
397 static auto lateSpecifiedFunc() -> decltype(NameFromBase()) {
/external/clang/test/Preprocessor/
H A Dcxx_oper_keyword_ms_compat.cpp41 #define decltype macro
126 decltype

Completed in 464 milliseconds