/external/clang/test/CXX/temp/temp.names/ |
p3-0x.cpp | 12 Y<decltype(a < b)> x6;
|
/external/clang/test/CodeGenCXX/ |
debug-info-cxx0x.cpp | 15 decltype(isa(int())) f() {}
|
nullptr.cpp | 12 typedef decltype(nullptr) nullptr_t;
|
mangle.cpp | 386 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(nullptr)) { 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...] |
cxx0x-initializer-stdinitializerlist-pr12086.cpp | 4 typedef decltype(sizeof(int)) size_t;
|
cxx0x-initializer-stdinitializerlist-startend.cpp | 4 typedef decltype(sizeof(int)) size_t;
|
/external/clang/test/SemaCXX/ |
class-base-member-init.cpp | 83 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) {
|
new-delete-0x.cpp | 3 using size_t = decltype(sizeof(0));
|
trailing-return-0x.cpp | 37 auto i(T x) -> decltype(x) function 50 auto g(T x, U y) -> decltype(x + y) 58 auto h(T x, U y, V z) -> decltype(x + y + z)
|
cxx0x-initializer-stdinitializerlist.cpp | 9 typedef decltype(sizeof(int)) size_t; 107 static_assert(same_type<decltype(deduce({1, 2, 3})), int>::value, "bad deduction"); 108 static_assert(same_type<decltype(deduce({1.0, 2.0, 3.0})), double>::value, "bad deduction"); 112 static_assert(same_type<decltype(deduce_ref({1, 2, 3})), int>::value, "bad deduction"); 113 static_assert(same_type<decltype(deduce_ref({1.0, 2.0, 3.0})), double>::value, "bad deduction"); 120 static_assert(same_type<decltype(l), std::initializer_list<int>>::value, "");
|
dependent-auto.cpp | 25 decltype(a) b;
|
discrim-union.cpp | 39 return decltype(rest)::index(t) + 1; 50 template<unsigned N> constexpr const decltype(static_cast<const rest_t&>(rest).get(select<N-1>{})) get(select<N>) { 70 typedef decltype(impl) impl_t; 85 decltype(static_cast<const impl_t&>(impl).get(detail::select<N>{}));
|
member-init.cpp | 30 int as[] = { decltype(x)::B<C, D>(0) }; // expected-error {{array bound cannot be deduced from an in-class initializer}}
|
underlying_type.cpp | 26 static_assert(is_same_type<char, decltype(h)>::value,
|
/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/Preprocessor/ |
cxx_oper_keyword_ms_compat.cpp | 33 #define decltype macro 118 decltype
|
/external/clang/test/CXX/over/over.oper/over.literal/ |
p5.cpp | 3 using size_t = decltype(sizeof(int));
|
p3.cpp | 3 using size_t = decltype(sizeof(int));
|
/external/clang/test/PCH/ |
cxx-alias-decl.cpp | 11 using T1 = decltype(a);
|
/external/clang/lib/Headers/ |
stddef.h | 57 namespace std { typedef decltype(nullptr) nullptr_t; }
|
/external/clang/test/CXX/lex/lex.literal/lex.ext/ |
p8.cpp | 3 using size_t = decltype(sizeof(int));
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/ |
p5.cpp | 20 typedef auto Fun(int a) -> decltype(a + a);
|
/external/clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/ |
p1.cpp | 13 auto begin(T &&t) -> decltype(t.begin()) { return t.begin(); } // expected-note 4{{ignored: substitution failure}} function in namespace:std 15 auto end(T &&t) -> decltype(t.end()) { return t.end(); } // expected-note {{candidate template ignored: substitution failure [with T = }} function in namespace:std 18 auto begin(T &&t) -> decltype(t.alt_begin()) { return t.alt_begin(); } // expected-note {{selected 'begin' template [with T = }} \ function in namespace:std 21 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);
|
/external/clang/test/SemaTemplate/ |
instantiate-exception-spec-cxx11.cpp | 30 decltype(S<0>::recurse()) *pVoid1 = 0; // ok, exception spec not needed 31 decltype(&S<0>::recurse) pFn = 0; // ok, exception spec not needed 64 typedef decltype(f<S>()) X; 74 template<typename T, typename = decltype(T(declval<T&&>()))>
|