/external/clang/test/SemaCXX/ |
D | cxx0x-initializer-stdinitializerlist.cpp | 13 class initializer_list class 18 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 32 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 58 std::initializer_list<int> il = { 1, 2, 3 }; in simple_list() 59 std::initializer_list<double> dl = { 1.0, 2.0, 3 }; in simple_list() 60 std::initializer_list<A> al = { {1, 2}, {2, 3}, {3, 4} }; in simple_list() 61 std::initializer_list<B> bl = { {1, 2}, {2, 3}, {} }; in simple_list() 65 void f(std::initializer_list<int>); in function_call() 68 void g(std::initializer_list<B>); in function_call() 83 one overloaded(std::initializer_list<int>); in overloaded_call() [all …]
|
D | cxx0x-initializer-constructor.cpp | 11 class initializer_list class 16 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 30 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 53 F(std::initializer_list<int>) { static_assert(N == 3, ""); } in F() 58 D(std::initializer_list<int>) { static_assert(N == 0, ""); } // expected-note 1 {{candidate}} in D() 59 D(std::initializer_list<double>) { static_assert(N == 1, ""); } // expected-note 1 {{candidate}} in D() 153 G(std::initializer_list<int>, T ...); // expected-note 3 {{not viable}} 205 void f(std::initializer_list<S>); 251 command_map(std::initializer_list<command_pair>); 260 const std::initializer_list<generator_pair> x = {{{{{3, 4}}}}}; [all …]
|
D | cxx0x-initializer-scalars.cpp | 11 class initializer_list class 16 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 30 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 110 one f(std::initializer_list<int>); in test()
|
D | PR20334-std_initializer_list_diagnosis_assertion.cpp | 6 class initializer_list class 10 template<class E> int f(std::initializer_list<E> il);
|
/external/clang/test/CodeGenCXX/ |
D | cxx0x-initializer-stdinitializerlist.cpp | 8 class initializer_list class 13 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 27 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 46 wantslist1(std::initializer_list<destroyme1>); 52 std::initializer_list<int> globalInitList1 = {1, 2, 3}; 61 std::initializer_list<int> thread_local x = { 1, 2, 3, 4 }; 97 std::initializer_list<witharg1> globalInitList2 = { 118 std::initializer_list<int> intlist{1, 2, i}; in fn1() 123 void target(std::initializer_list<destroyme1>); in fn2() 143 void target(std::initializer_list<witharg1>); in fn4() [all …]
|
D | PR24289.cpp | 5 struct initializer_list { struct 9 constexpr initializer_list(const T *B, __SIZE_TYPE__ S) in initializer_list() function 15 static std::initializer_list<std::initializer_list<int>> a{ in f() argument 17 static std::initializer_list<std::initializer_list<int>> b{ in f() 19 static std::initializer_list<std::initializer_list<int>> c{ in f() 21 static std::initializer_list<std::initializer_list<int>> d{ in f() 23 static std::initializer_list<std::initializer_list<int>> e{ in f()
|
D | cxx0x-initializer-stdinitializerlist-startend.cpp | 8 class initializer_list class 13 initializer_list(const _E* __b, const _E* __e) in initializer_list() function in std::initializer_list 27 initializer_list() : __begin_(nullptr), __end_(nullptr) {} in initializer_list() function in std::initializer_list 37 std::initializer_list<int> globalInitList1 = {1, 2, 3}; 57 std::initializer_list<int> intlist{1, 2, i}; in fn1() 70 void target(std::initializer_list<destroyme1>); in fn2()
|
D | cxx0x-initializer-stdinitializerlist-pr12086.cpp | 10 class initializer_list class 19 constexpr initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 38 constexpr initializer_list() : __begin_(nullptr), __end_(nullptr) {} in initializer_list() function in std::initializer_list 44 constexpr initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 54 std::initializer_list<std::initializer_list<int>> nested = {
|
/external/clang/test/CXX/drs/ |
D | dr15xx.cpp | 31 class initializer_list class 36 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 48 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 70 void f0(std::initializer_list<int>); // #00 75 void f1(std::initializer_list<long>); // #2 80 void f2(std::initializer_list<std::string>); // #4 85 void f0(std::initializer_list<int>); // #00 expected-note {{candidate function}} 86 void f0(std::initializer_list<int>, int = 0); // Makes selection of #00 ambiguous \ 91 void f1(std::initializer_list<long>); // #2 expected-note {{candidate function}} 92 void f1(std::initializer_list<long>, int = 0); // Makes selection of #00 ambiguous \ [all …]
|
D | dr9xx.cpp | 13 template<typename T> struct initializer_list { struct 15 initializer_list(const T *p, size_t n); 22 A(std::initializer_list<int>); // expected-note {{candidate}} argument 34 C(std::initializer_list<int>) = delete; // expected-note {{here}} 41 D(std::initializer_list<int>); 42 D(std::initializer_list<double>);
|
D | dr10xx.cpp | 11 template<typename T> struct initializer_list { struct 13 initializer_list(const T *p, size_t n); 38 A(std::initializer_list<int>); 46 std::initializer_list<int> a; 48 std::initializer_list<double> c;
|
/external/libcxx/include/ |
D | initializer_list | 2 //===----------------------- initializer_list -----------------------------===// 15 initializer_list synopsis 21 class initializer_list 32 initializer_list() noexcept; // constexpr in C++14 39 template<class E> const E* begin(initializer_list<E> il) noexcept; // constexpr in C++14 40 template<class E> const E* end(initializer_list<E> il) noexcept; // constexpr in C++14 59 class _LIBCPP_TYPE_VIS_ONLY initializer_list 66 initializer_list(const _Ep* __b, size_t __s) _NOEXCEPT 81 initializer_list() _NOEXCEPT : __begin_(nullptr), __size_(0) {} 100 begin(initializer_list<_Ep> __il) _NOEXCEPT [all …]
|
D | module.modulemap | 8 export initializer_list 13 export initializer_list 256 export initializer_list 265 export initializer_list 280 module initializer_list { 281 header "initializer_list" 320 export initializer_list 329 export initializer_list 355 export initializer_list 360 export initializer_list [all …]
|
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
D | p3-0x.cpp | 7 struct initializer_list struct 11 initializer_list(const E *p, size_t n) : p(p), n(n) {} in initializer_list() argument 40 S(std::initializer_list<double> d) {} in S() 41 S(std::initializer_list<int> i) {} in S() 52 Map(std::initializer_list<std::pair<std::string,int>>) {} in Map() 76 S(std::initializer_list<double>) {} in S() 98 B(std::initializer_list<int> i) {} in B() 122 std::initializer_list<MoveOnly> &&list3 = {}; in test()
|
/external/libcxx/test/std/language.support/support.initlist/ |
D | types.pass.cpp | 30 static_assert((std::is_same<std::initializer_list<A>::value_type, A>::value), ""); in main() 31 static_assert((std::is_same<std::initializer_list<A>::reference, const A&>::value), ""); in main() 32 static_assert((std::is_same<std::initializer_list<A>::const_reference, const A&>::value), ""); in main() 33 static_assert((std::is_same<std::initializer_list<A>::size_type, std::size_t>::value), ""); in main() 34 static_assert((std::is_same<std::initializer_list<A>::iterator, const A*>::value), ""); in main() 35 static_assert((std::is_same<std::initializer_list<A>::const_iterator, const A*>::value), ""); in main()
|
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/ |
D | initializer_list.pass.cpp | 49 constexpr Y(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} in Y() 62 constexpr Z(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) in Z() 76 static_assert(!std::is_constructible<X, std::initializer_list<int>&>::value, ""); in main() 77 static_assert(!std::is_constructible<optional<X>, std::initializer_list<int>&>::value, ""); in main() 92 static_assert(std::is_constructible<optional<Y>, std::initializer_list<int>&>::value, ""); in main() 100 constexpr test_constexpr_ctor(in_place_t, std::initializer_list<int> i) in main() 106 static_assert(std::is_constructible<optional<Z>, std::initializer_list<int>&>::value, ""); in main() 120 constexpr test_constexpr_ctor(in_place_t, std::initializer_list<int> i) in main()
|
/external/clang/test/Index/ |
D | annotate-tokens-cxx0x.cpp | 32 class initializer_list class 37 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 51 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 60 Foo(std::initializer_list<int> il);
|
/external/clang/test/Modules/Inputs/initializer_list/ |
D | direct.h | 4 template<typename T> struct initializer_list { struct 5 initializer_list(T*, size_t); 8 template<typename T> int min(initializer_list<T>);
|
/external/libcxx/test/std/iterators/iterator.container/ |
D | data.pass.cpp | 33 void test_const_container( const std::initializer_list<T>& c ) in test_const_container() 45 void test_container( std::initializer_list<T>& c) in test_container() 60 std::initializer_list<int> il = { 4 }; in main()
|
D | empty.pass.cpp | 33 void test_const_container( const std::initializer_list<T>& c ) in test_const_container() 45 void test_container( std::initializer_list<T>& c ) in test_container() 61 std::initializer_list<int> il = { 4 }; in main()
|
D | size.pass.cpp | 32 void test_const_container( const std::initializer_list<T>& c) in test_const_container() 44 void test_container( std::initializer_list<T>& c ) in test_container() 60 std::initializer_list<int> il = { 4 }; in main()
|
/external/clang/test/CodeGenObjCXX/ |
D | arc-cxx11-init-list.mm | 7 class initializer_list { 11 initializer_list(const _Ep* __b, size_t __s); 19 void function(std::initializer_list<I *>); 47 std::initializer_list<I *> il = { [I new] };
|
/external/libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/ |
D | indexing.pass.cpp | 29 void dyn_test_const ( const dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test_const() 39 void dyn_test ( dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test() 50 void test ( std::initializer_list<T> vals ) { in test()
|
D | at.pass.cpp | 44 void dyn_test_const ( const dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test_const() 58 void dyn_test ( dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test() 73 void test ( std::initializer_list<T> vals ) { in test()
|
/external/libcxx/test/std/language.support/support.initlist/support.initlist.cons/ |
D | default.pass.cpp | 22 std::initializer_list<A> il; in main() 26 constexpr std::initializer_list<A> il2; in main()
|