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

/external/parameter-framework/upstream/parameter/
H A DLogarithmicParameterAdaptation.h73 double _dLogarithmBase{std::exp(decltype(_dLogarithmBase){1})}; function in class:CLogarithmicParameterAdaptation::std
/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;
72 void auto_(decltype(new auto(T()))) { function in namespace:Casts
76 void scalar_(decltype(T(), int())) {
116 template <class T> auto a(T t) -> decltype(foo(T())) { return foo(t); }
119 template <class T> auto b(T t) -> decltype((foo)(T())) { return (foo)(t); } function in namespace:test1
128 template <class T> void a(T x, decltype(x()) y) {}
129 template <class T> auto b(T x) -> decltype(x()) { return x(); }
130 template <class T> void c(T x, void (*p)(decltype(x()))) {}
131 template <class T> void d(T x, auto (*p)() -> decltype(x())) {} argument
132 template <class T> void e(auto (*p)(T y) -> decltype(
216 template <typename T> void a(decltype(noexcept(T()))) {} function in namespace:test5
256 void f1(decltype(T(z.ua.i))) {} function in namespace:test6
261 void f2(decltype(T(z.ub.i))) {} function in namespace:test6
266 void f3(decltype(T(z.s.i))) {} function in namespace:test6
271 void f4(decltype(T(z.uuss.i))) {} function in namespace:test6
276 void f5(decltype(T(zp->ua.i))) {} function in namespace:test6
281 void f6(decltype(T(zp->ub.i))) {} function in namespace:test6
286 void f7(decltype(T(zp->s.i))) {} function in namespace:test6
291 void f8(decltype(T(zp->uuss.i))) {} function in namespace:test6
[all...]
H A Dmangle-ms-cxx11.cpp73 namespace std { typedef decltype(__nullptr) nullptr_t; }
103 decltype(Enum) *UseEnum() { return &Enum; }
104 decltype(BoolEnum) *UseBoolEnum() { return &BoolEnum; }
105 decltype(CharEnum) *UseCharEnum() { return &CharEnum; }
106 decltype(SCharEnum) *UseSCharEnum() { return &SCharEnum; }
107 decltype(UCharEnum) *UseUCharEnum() { return &UCharEnum; }
108 decltype(SShortEnum) *UseSShortEnum() { return &SShortEnum; }
109 decltype(UShortEnum) *UseUShortEnum() { return &UShortEnum; }
110 decltype(SIntEnum) *UseSIntEnum() { return &SIntEnum; }
111 decltype(UIntEnu
160 decltype(a) fun(decltype(a) x, decltype(a)) { return x; } function in namespace:PR18022
261 void f(decltype(B<int>::e)) {} function in namespace:UnnamedType
[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/clang/test/PCH/
H A Dimplicitly-deleted.cpp11 template<typename T> void doit(decltype(T(make<const T&>()))*) { T(make<const T&>()); } function
/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/v8/tools/gyp/test/mac/clang-cxx-language-standard/
H A Dc++98.cc15 decltype, enumerator in enum:cxx11_keywords
/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.cpp44 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++14 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
62 using T = decltype(c);
70 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.cpp271 auto foo(int j) -> decltype(y * j) { // expected-warning {{lookup into dependent bases}} function in struct:nonmethod_missing_this::Derived
456 static auto lateSpecifiedFunc() -> decltype(NameFromBase()) {
569 template <typename T> decltype(g(T())) check(); // expected-note{{candidate template ignored: substitution failure [with T = int]: use of undeclared identifier 'g'}}
570 decltype(check<int>()) x; // expected-error{{no matching function for call to 'check'}}
573 template <typename T> decltype(h(T())) check2(); // expected-note{{candidate template ignored: substitution failure [with T = int]: no matching function for call to 'h'}}
574 decltype(check2<int>()) y; // expected-error{{no matching function for call to 'check2'}}
/external/clang/test/Preprocessor/
H A Dcxx_oper_keyword_ms_compat.cpp43 #define decltype macro
128 decltype
/external/llvm/include/llvm/ADT/
H A DSTLExtras.h201 template <typename U> static char(&f(const U &, decltype(&U::rbegin)))[1];
211 nullptr) -> decltype(make_range(C.rbegin(), C.rend())) {
228 -> decltype(make_range(llvm::make_reverse_iterator(std::end(C)),
385 auto find(R &&Range, const T &val) -> decltype(Range.begin()) { function in namespace:llvm
463 auto operator()(A &lhs, B &rhs) const -> decltype(func(*lhs, *rhs)) { function in struct:llvm::deref

Completed in 1012 milliseconds