Home
last modified time | relevance | path

Searched refs:InitList (Results 1 – 25 of 82) sorted by relevance

1234

/external/libcxx/test/std/utilities/variant/variant.variant/variant.mod/
Demplace_type_init_list_args.pass.cpp37 struct InitList { struct
39 constexpr InitList(std::initializer_list<int> il) : size(il.size()) {} in InitList() function
66 std::variant<int, TestTypes::NoCtors, InitList, InitListArg, long, long>; in test_emplace_sfinae()
68 static_assert(emplace_exists<V, InitList, IL>(), ""); in test_emplace_sfinae()
69 static_assert(!emplace_exists<V, InitList, int>(), "args don't match"); in test_emplace_sfinae()
70 static_assert(!emplace_exists<V, InitList, IL, int>(), "too many args"); in test_emplace_sfinae()
79 using V = std::variant<int, InitList, InitListArg, TestTypes::NoCtors>; in test_basic()
81 auto& ref1 = v.emplace<InitList>({1, 2, 3}); in test_basic()
82 static_assert(std::is_same_v<InitList&,decltype(ref1)>, ""); in test_basic()
83 assert(std::get<InitList>(v).size == 3); in test_basic()
[all …]
Demplace_index_init_list_args.pass.cpp37 struct InitList { struct
39 constexpr InitList(std::initializer_list<int> il) : size(il.size()) {} in InitList() argument
66 std::variant<int, TestTypes::NoCtors, InitList, InitListArg, long, long>; in test_emplace_sfinae()
79 using V = std::variant<int, InitList, InitListArg, TestTypes::NoCtors>; in test_basic()
82 static_assert(std::is_same_v<InitList&, decltype(ref1)>, ""); in test_basic()
91 static_assert(std::is_same_v<InitList&, decltype(ref3)>, ""); in test_basic()
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.mod/
Demplace_type_init_list_args.pass.cpp34 struct InitList { struct
36 constexpr InitList(std::initializer_list<int> il) : size(il.size()) {} in InitList() argument
63 std::variant<int, TestTypes::NoCtors, InitList, InitListArg, long, long>; in test_emplace_sfinae()
65 static_assert(emplace_exists<V, InitList, IL>(), ""); in test_emplace_sfinae()
66 static_assert(!emplace_exists<V, InitList, int>(), "args don't match"); in test_emplace_sfinae()
67 static_assert(!emplace_exists<V, InitList, IL, int>(), "too many args"); in test_emplace_sfinae()
76 using V = std::variant<int, InitList, InitListArg, TestTypes::NoCtors>; in test_basic()
78 auto& ref1 = v.emplace<InitList>({1, 2, 3}); in test_basic()
79 static_assert(std::is_same_v<InitList&,decltype(ref1)>, ""); in test_basic()
80 assert(std::get<InitList>(v).size == 3); in test_basic()
[all …]
Demplace_index_init_list_args.pass.cpp34 struct InitList { struct
36 constexpr InitList(std::initializer_list<int> il) : size(il.size()) {} in InitList() argument
63 std::variant<int, TestTypes::NoCtors, InitList, InitListArg, long, long>; in test_emplace_sfinae()
76 using V = std::variant<int, InitList, InitListArg, TestTypes::NoCtors>; in test_basic()
79 static_assert(std::is_same_v<InitList&, decltype(ref1)>, ""); in test_basic()
88 static_assert(std::is_same_v<InitList&, decltype(ref3)>, ""); in test_basic()
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Din_place_type_init_list_args.pass.cpp34 struct InitList { struct
36 constexpr InitList(std::initializer_list<int> il) : size(il.size()) {} in InitList() function
49 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
51 std::is_constructible<V, std::in_place_type_t<InitList>, IL>::value, in test_ctor_sfinae()
53 static_assert(!test_convertible<V, std::in_place_type_t<InitList>, IL>(), in test_ctor_sfinae()
57 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
58 static_assert(!std::is_constructible<V, std::in_place_type_t<InitList>, IL, in test_ctor_sfinae()
62 !test_convertible<V, std::in_place_type_t<InitList>, IL, int>(), ""); in test_ctor_sfinae()
65 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
73 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
[all …]
Din_place_index_init_list_args.pass.cpp34 struct InitList { struct
36 constexpr InitList(std::initializer_list<int> il) : size(il.size()) {} in InitList() function
49 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
55 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
63 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
69 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
76 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
82 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
91 constexpr std::variant<InitList, InitListArg, InitList> v( in test_ctor_basic()
97 constexpr std::variant<InitList, InitListArg, InitList> v( in test_ctor_basic()
[all …]
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Din_place_type_init_list_args.pass.cpp37 struct InitList { struct
39 constexpr InitList(std::initializer_list<int> il) : size(il.size()) {} in InitList() argument
52 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
54 std::is_constructible<V, std::in_place_type_t<InitList>, IL>::value, in test_ctor_sfinae()
56 static_assert(!test_convertible<V, std::in_place_type_t<InitList>, IL>(), in test_ctor_sfinae()
60 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
61 static_assert(!std::is_constructible<V, std::in_place_type_t<InitList>, IL, in test_ctor_sfinae()
65 !test_convertible<V, std::in_place_type_t<InitList>, IL, int>(), ""); in test_ctor_sfinae()
68 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
76 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
[all …]
Din_place_index_init_list_args.pass.cpp37 struct InitList { struct
39 constexpr InitList(std::initializer_list<int> il) : size(il.size()) {} in InitList() argument
52 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
58 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
66 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
72 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
79 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
85 using V = std::variant<InitList, InitListArg, int>; in test_ctor_sfinae()
94 constexpr std::variant<InitList, InitListArg, InitList> v( in test_ctor_basic()
100 constexpr std::variant<InitList, InitListArg, InitList> v( in test_ctor_basic()
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorInitializer.h29 typename Initializer<Derived, N - 1>::InitList> InitList; typedef
33 const InitList& vals) { in run()
44 typedef std::initializer_list<typename traits<Derived>::Scalar> InitList;
48 const InitList& vals) {
60 typedef typename traits<Derived>::Scalar InitList;
64 const InitList& v) {
72 … const typename Initializer<Derived, traits<Derived>::NumDimensions>::InitList& vals) {
/external/llvm/lib/ExecutionEngine/Orc/
DExecutionUtils.cpp21 : InitList( in CtorDtorIterator()
23 I((InitList && End) ? InitList->getNumOperands() : 0) { in CtorDtorIterator()
27 assert(InitList == Other.InitList && "Incomparable iterators."); in operator ==()
47 ConstantStruct *CS = dyn_cast<ConstantStruct>(InitList->getOperand(I)); in operator *()
/external/clang/test/SemaCXX/
Ddelete.cpp91 struct InitList { struct
93InitList(unsigned c) : p(new derived[c]), p4(nullptr) {} // expected-note {{allocated with 'new[]… in InitList() function
94InitList(unsigned c, unsigned) : p{new derived[c]}, p4{nullptr} {} // expected-note {{allocated wi… in InitList() argument
95 ~InitList() { in ~InitList() argument
/external/llvm-project/clang/test/SemaCXX/
Ddelete.cpp91 struct InitList { struct
93InitList(unsigned c) : p(new derived[c]), p4(nullptr) {} // expected-note {{allocated with 'new[]… in InitList() argument
94InitList(unsigned c, unsigned) : p{new derived[c]}, p4{nullptr} {} // expected-note {{allocated wi… in InitList() argument
95 ~InitList() { in ~InitList() argument
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyLowerGlobalDtors.cpp67 const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); in runOnModule() local
68 if (!InitList) in runOnModule()
72 auto *ETy = dyn_cast<StructType>(InitList->getType()->getElementType()); in runOnModule()
82 for (Value *O : InitList->operands()) { in runOnModule()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DExprSequence.cpp113 } else if (const auto *InitList = dyn_cast<InitListExpr>(Parent)) { in getSequenceSuccessor() local
116 for (unsigned I = 1; I < InitList->getNumInits(); ++I) { in getSequenceSuccessor()
117 if (InitList->getInit(I - 1) == S) in getSequenceSuccessor()
118 return InitList->getInit(I); in getSequenceSuccessor()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/
DExecutionUtils.cpp49 : InitList( in CtorDtorIterator()
51 I((InitList && End) ? InitList->getNumOperands() : 0) { in CtorDtorIterator()
55 assert(InitList == Other.InitList && "Incomparable iterators."); in operator ==()
75 ConstantStruct *CS = dyn_cast<ConstantStruct>(InitList->getOperand(I)); in operator *()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyLowerGlobalDtors.cpp67 const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); in runOnModule() local
68 if (!InitList) in runOnModule()
72 auto *ETy = dyn_cast<StructType>(InitList->getType()->getElementType()); in runOnModule()
86 for (Value *O : InitList->operands()) { in runOnModule()
/external/llvm-project/llvm/lib/ExecutionEngine/Orc/
DExecutionUtils.cpp25 : InitList( in CtorDtorIterator()
27 I((InitList && End) ? InitList->getNumOperands() : 0) { in CtorDtorIterator()
31 assert(InitList == Other.InitList && "Incomparable iterators."); in operator ==()
51 ConstantStruct *CS = dyn_cast<ConstantStruct>(InitList->getOperand(I)); in operator *()
/external/clang/lib/Sema/
DSemaInit.cpp3398 InitListExpr *InitList,
3673 InitListExpr *InitList = nullptr);
3679 InitListExpr *InitList, in TryReferenceListInitialization() argument
3704 if (InitList->getNumInits() == 1) { in TryReferenceListInitialization()
3705 Expr *Initializer = InitList->getInit(0); in TryReferenceListInitialization()
3725 Sequence.RewrapReferenceInitList(cv1T1, InitList); in TryReferenceListInitialization()
3731 Sequence.RewrapReferenceInitList(cv1T1, InitList); in TryReferenceListInitialization()
3737 TryListInitialization(S, TempEntity, Kind, InitList, Sequence, in TryReferenceListInitialization()
3753 InitListExpr *InitList, in TryListInitialization() argument
3761 !DestType->isAnyComplexType() && InitList->getNumInits() > 1) { in TryListInitialization()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseDefaultMemberInitCheck.cpp144 auto *InitList = dyn_cast<InitListExpr>(E); in getInitializer() local
145 if (InitList && InitList->getNumInits() == 1) in getInitializer()
146 return InitList->getInit(0)->IgnoreParenImpCasts(); in getInitializer()
/external/llvm-project/clang/lib/Sema/
DSemaInit.cpp3839 InitListExpr *InitList,
4218 InitListExpr *InitList = nullptr);
4224 InitListExpr *InitList, in TryReferenceListInitialization() argument
4249 if (InitList->getNumInits() == 1) { in TryReferenceListInitialization()
4250 Expr *Initializer = InitList->getInit(0); in TryReferenceListInitialization()
4268 Sequence.RewrapReferenceInitList(cv1T1, InitList); in TryReferenceListInitialization()
4274 Sequence.RewrapReferenceInitList(cv1T1, InitList); in TryReferenceListInitialization()
4280 TryListInitialization(S, TempEntity, Kind, InitList, Sequence, in TryReferenceListInitialization()
4296 InitListExpr *InitList, in TryListInitialization() argument
4304 !DestType->isAnyComplexType() && InitList->getNumInits() > 1) { in TryListInitialization()
[all …]
/external/llvm-project/llvm/tools/bugpoint/
DExtractFunction.cpp254 ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); in SplitStaticCtorDtor() local
255 if (!InitList) in SplitStaticCtorDtor()
258 for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i) { in SplitStaticCtorDtor()
260 dyn_cast<ConstantStruct>(InitList->getOperand(i))) { in SplitStaticCtorDtor()
/external/llvm/tools/bugpoint/
DExtractFunction.cpp258 ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); in SplitStaticCtorDtor() local
259 if (!InitList) return; in SplitStaticCtorDtor()
261 for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i) { in SplitStaticCtorDtor()
262 if (ConstantStruct *CS = dyn_cast<ConstantStruct>(InitList->getOperand(i))){ in SplitStaticCtorDtor()
/external/llvm/lib/TableGen/
DTGParser.cpp912 SmallVector<Init*, 2> InitList; in ParseOperation() local
914 InitList.push_back(ParseValue(CurRec)); in ParseOperation()
915 if (!InitList.back()) return nullptr; in ParseOperation()
920 InitList.push_back(ParseValue(CurRec)); in ParseOperation()
921 if (!InitList.back()) return nullptr; in ParseOperation()
932 if (VarInit *Arg0 = dyn_cast<VarInit>(InitList[0])) in ParseOperation()
934 else if (ListInit *Arg0 = dyn_cast<ListInit>(InitList[0])) in ParseOperation()
937 InitList[0]->dump(); in ParseOperation()
946 while (InitList.size() > 2) { in ParseOperation()
947 Init *RHS = InitList.pop_back_val(); in ParseOperation()
[all …]
/external/clang/include/clang/Sema/
DInitialization.h512 bool InitList) { in CreateCStyleCast() argument
515 return InitializationKind(InitList ? IK_DirectList : IK_Direct, in CreateCStyleCast()
522 bool InitList) { in CreateFunctionalCast() argument
523 return InitializationKind(InitList ? IK_DirectList : IK_Direct, in CreateFunctionalCast()
/external/llvm-project/clang/include/clang/Sema/
DInitialization.h650 bool InitList) { in CreateCStyleCast() argument
653 return InitializationKind(InitList ? IK_DirectList : IK_Direct, in CreateCStyleCast()
660 bool InitList) { in CreateFunctionalCast() argument
661 return InitializationKind(InitList ? IK_DirectList : IK_Direct, in CreateFunctionalCast()

1234