Home
last modified time | relevance | path

Searched refs:Array (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
H A Dallocate_shared.array.unbounded.pass.cpp47 using Array = int[]; in main() typedef
48 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>(), 0); in main()
54 using Array = int[]; in main() typedef
55 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>(), 0, 42); in main()
64 using Array = int[]; in main() typedef
65 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>(), 1); in main()
72 using Array = int[]; in main() typedef
73 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>(), 1, 42); in main()
83 using Array = int[]; in main() typedef
84 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>(), 8); in main()
[all …]
H A Dallocate_shared.array.bounded.pass.cpp41 using Array = int[8]; in main() typedef
42 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>()); in main()
48 using Array = int[8][3]; in main() typedef
49 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>()); in main()
57 using Array = int[8][3][2]; in main() typedef
58 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>()); in main()
71 using Array = int[8]; in main() typedef
73 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>(), init); in main()
79 using Array = int[8][3]; in main() typedef
81 std::shared_ptr<Array> ptr = std::allocate_shared<Array>(std::allocator<Array>(), init); in main()
[all …]
H A Dmake_shared.array.unbounded.pass.cpp45 using Array = int[]; in main() typedef
46 std::shared_ptr<Array> ptr = std::make_shared<Array>(0); in main()
52 using Array = int[]; in main() typedef
53 std::shared_ptr<Array> ptr = std::make_shared<Array>(0, 42); in main()
62 using Array = int[]; in main() typedef
63 std::shared_ptr<Array> ptr = std::make_shared<Array>(1); in main()
70 using Array = int[]; in main() typedef
71 std::shared_ptr<Array> ptr = std::make_shared<Array>(1, 42); in main()
81 using Array = int[]; in main() typedef
82 std::shared_ptr<Array> ptr = std::make_shared<Array>(8); in main()
[all …]
H A Dmake_shared.array.bounded.pass.cpp40 using Array = int[8]; in main() typedef
41 std::shared_ptr<Array> ptr = std::make_shared<Array>(); in main()
47 using Array = int[8][3]; in main() typedef
48 std::shared_ptr<Array> ptr = std::make_shared<Array>(); in main()
56 using Array = int[8][3][2]; in main() typedef
57 std::shared_ptr<Array> ptr = std::make_shared<Array>(); in main()
70 using Array = int[8]; in main() typedef
72 std::shared_ptr<Array> ptr = std::make_shared<Array>(init); in main()
78 using Array = int[8][3]; in main() typedef
80 std::shared_ptr<Array> ptr = std::make_shared<Array>(init); in main()
[all …]
/llvm-project/libcxx/test/std/containers/sequences/array/array.cons/
H A Dimplicit_copy.pass.cpp40 typedef std::array<double, 3> Array; in tests() typedef
41 Array array = {1.1, 2.2, 3.3}; in tests()
42 Array copy = array; in tests()
44 static_assert(std::is_copy_constructible<Array>::value, ""); in tests()
45 static_assert(std::is_copy_assignable<Array>::value, ""); in tests()
48 typedef std::array<double const, 3> Array; in tests() typedef
49 Array array = {1.1, 2.2, 3.3}; in tests()
50 Array copy = array; (void)copy; in tests()
51 static_assert(std::is_copy_constructible<Array>::value, ""); in tests()
52 TEST_NOT_COPY_ASSIGNABLE(Array); in tests()
[all …]
/llvm-project/libcxx/test/std/utilities/meta/meta.rel/
H A Dis_convertible.pass.cpp48 typedef char Array[1]; typedef
72 test_is_not_convertible<void,Array> (); in main()
73 test_is_not_convertible<void,Array&> (); in main()
88 test_is_not_convertible<Function, Array> (); in main()
89 test_is_not_convertible<Function, Array&> (); in main()
100 test_is_not_convertible<Function&, Array> (); in main()
101 test_is_not_convertible<Function&, Array&> (); in main()
112 test_is_not_convertible<Function*, Array> (); in main()
113 test_is_not_convertible<Function*, Array&> (); in main()
132 test_is_not_convertible<Array, void> (); in main()
[all …]
/llvm-project/libcxx/test/std/concepts/concepts.lang/concept.convertible/
H A Dconvertible_to.pass.cpp92 using Array = char[1]; typedef
146 CheckNotConvertibleTo<void, Array>(); in main()
147 CheckNotConvertibleTo<void, Array&>(); in main()
167 CheckNotConvertibleTo<Function, Array>(); in main()
168 CheckNotConvertibleTo<Function, Array&>(); in main()
179 CheckNotConvertibleTo<Function&, Array>(); in main()
180 CheckNotConvertibleTo<Function&, Array&>(); in main()
191 CheckNotConvertibleTo<Function*, Array>(); in main()
192 CheckNotConvertibleTo<Function*, Array&>(); in main()
221 CheckNotConvertibleTo<NoexceptFunction, Array>(); in main()
[all …]
/llvm-project/libcxx/test/std/containers/sequences/array/
H A Dsize_and_alignment.compile.pass.cpp42 using Array = std::array<T, 0>; in test_type()
43 LIBCPP_STATIC_ASSERT(sizeof(Array) == sizeof(T), ""); in test_type()
44 LIBCPP_STATIC_ASSERT(TEST_ALIGNOF(Array) == TEST_ALIGNOF(T), ""); in test_type()
45 LIBCPP_STATIC_ASSERT(sizeof(Array) == sizeof(T[1]), ""); in test_type()
46 LIBCPP_STATIC_ASSERT(sizeof(Array) == sizeof(MyArray<T, 1>), ""); in test_type()
47 LIBCPP_STATIC_ASSERT(TEST_ALIGNOF(Array) == TEST_ALIGNOF(MyArray<T, 1>), ""); in test_type()
48 static_assert(!std::is_empty<Array>::value, ""); in test_type()
51 LIBCPP_STATIC_ASSERT(std::__datasizeof_v<Array> == sizeof(Array), ""); in test_type()
55 using Array in test_type()
40 using Array = std::array<T, 0>; test_type() typedef
53 using Array = std::array<T, 1>; test_type() typedef
63 using Array = std::array<T, 2>; test_type() typedef
73 using Array = std::array<T, 3>; test_type() typedef
83 using Array = std::array<T, 444>; test_type() typedef
[all...]
/llvm-project/llvm/include/llvm/Support/
H A DBinaryStreamArray.h163 VarStreamArrayIterator(const ArrayType &Array, const Extractor &E, in VarStreamArrayIterator() argument
165 : IterRef(Array.Stream.drop_front(Offset)), Extract(E), in VarStreamArrayIterator()
166 Array(&Array), AbsOffset(Offset), HadError(HadError) { in VarStreamArrayIterator()
183 if (Array && R.Array) {
185 assert(Array == R.Array);
190 if (!Array && !R.Array)
198 assert(Array && !HasError);
232 Array = nullptr; in moveToEnd()
245 const ArrayType *Array{nullptr};
325 FixedStreamArrayIterator(const FixedStreamArray<T> &Array, uint32_t Index) in FixedStreamArrayIterator() argument
[all …]
H A DJSON.h91 class Array; variable
154 const json::Array *getArray(StringRef K) const;
155 json::Array *getArray(StringRef K);
164 class Array {
172 Array() = default;
173 explicit Array(std::initializer_list<Value> Elements);
174 template <typename Collection> explicit Array(const Collection &C) { in Array() function
207 friend bool operator==(const Array &L, const Array &R);
209 inline bool operator!=(const Array &L, const Array &R) { return !(L == R); }
297 Array, enumerator
[all …]
/llvm-project/llvm/unittests/ADT/
H A DEnumeratedArrayTest.cpp68 EnumeratedArray<float, Colors, Colors::Last, size_t> Array; in TEST() local
69 const auto &ConstArray = Array; in TEST()
83 EnumeratedArray<float, Colors, Colors::Last, size_t> Array; in TEST() local
84 const auto &ConstArray = Array; in TEST()
86 Array[Colors::Red] = 1.0; in TEST()
87 Array[Colors::Blue] = 2.0; in TEST()
88 Array[Colors::Green] = 3.0; in TEST()
90 EXPECT_THAT(Array, testing::ElementsAre(1.0, 2.0, 3.0)); in TEST()
93 EXPECT_THAT(make_range(Array.rbegin(), Array.rend()), in TEST()
107 using Array = EnumeratedArray<float, Colors, Colors::Last, size_t>; typedef
[all …]
/llvm-project/llvm/tools/llvm-cov/
H A DCoverageExporterJson.cpp83 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment()
84 return json::Array({Segment.Line, Segment.Col, in renderSegment()
89 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion()
90 return json::Array({Region.LineStart, Region.ColumnStart, Region.LineEnd, in renderRegion()
96 json::Array renderBranch(const coverage::CountedRegion &Region) { in renderBranch()
97 return json::Array( in renderBranch()
104 json::Array gatherConditions(const coverage::MCDCRecord &Record) { in gatherConditions()
105 json::Array Conditions; in gatherConditions()
111 json::Array renderMCDCRecord(const coverage::MCDCRecord &Record) { in renderMCDCRecord()
113 return json::Array({CM in renderMCDCRecord()
[all...]
/llvm-project/clang/test/Frontend/
H A Dstack-layout-remark.c80 struct Array { struct
86 struct Array *data; argument
100 void cleanup_array(struct Array *a) { in cleanup_array()
123 extern void use_dot_vector(struct Array *data);
158 int do_work(struct Array *A, struct Array *B, struct Result *out) { in do_work()
164 struct Array *AB; in do_work()
166 AB = (struct Array *)allocate(sizeof(struct Array)); in do_work()
207 struct Array *gen_array(int size) { in gen_array()
210 struct Array *res = (struct Array *)allocate(sizeof(struct Array)); in gen_array()
285 struct Array *A = gen_array(size); in caller()
[all …]
/llvm-project/compiler-rt/lib/xray/tests/unit/
H A Dsegmented_array_test.cpp27 using AllocatorType = typename Array<TestData>::AllocatorType; in TEST()
29 Array<TestData> Data(A); in TEST()
34 using AllocatorType = typename Array<TestData>::AllocatorType; in TEST()
36 Array<TestData> data(A); in TEST()
43 using AllocatorType = typename Array<TestData>::AllocatorType; in TEST()
45 Array<TestData> data(A); in TEST()
53 using AllocatorType = typename Array<TestData>::AllocatorType; in TEST()
55 Array<TestData> data(A); in TEST()
68 using AllocatorType = typename Array<TestData>::AllocatorType; in TEST()
70 Array<TestData> data(A); in TEST()
[all …]
/llvm-project/compiler-rt/lib/scudo/standalone/tests/
H A Dchecksum_test.cpp15 static scudo::u16 computeSoftwareChecksum(scudo::u32 Seed, scudo::uptr *Array, in computeSoftwareChecksum() argument
19 Checksum = scudo::computeBSDChecksum(Checksum, Array[I]); in computeSoftwareChecksum()
23 static scudo::u16 computeHardwareChecksum(scudo::u32 Seed, scudo::uptr *Array, in computeHardwareChecksum() argument
27 Crc = scudo::computeHardwareCRC32(Crc, Array[I]); in computeHardwareChecksum()
36 scudo::uptr Array[sizeof(scudo::u64) / sizeof(scudo::uptr)]; in verifyChecksumFunctionBitFlip() local
37 const scudo::uptr ArraySize = ARRAY_SIZE(Array); in verifyChecksumFunctionBitFlip()
38 memset(Array, 0xaa, sizeof(Array)); in verifyChecksumFunctionBitFlip()
40 const scudo::u16 Reference = F(Seed, Array, ArraySize); in verifyChecksumFunctionBitFlip()
44 Array[I] ^= scudo::uptr{1} << J; in verifyChecksumFunctionBitFlip()
45 if (F(Seed, Array, ArraySize) == Reference) in verifyChecksumFunctionBitFlip()
[all …]
/llvm-project/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.destroy/
H A Ddestroy_n.pass.cpp34 using Array = Counted[3]; in test_arrays() typedef
35 using Alloc = std::allocator<Array>; in test_arrays()
38 Array* pool = std::allocator_traits<Alloc>::allocate(alloc, 5); in test_arrays()
40 for (Array* p = pool; p != pool + 5; ++p) { in test_arrays()
41 Array& arr = *p; in test_arrays()
48 Array* p = std::destroy_n(pool, 5); in test_arrays()
49 ASSERT_SAME_TYPE(decltype(std::destroy_n(pool, 5)), Array*); in test_arrays()
56 using Array = Counted[3][2]; in test_arrays() typedef
57 using Alloc = std::allocator<Array>; in test_arrays()
60 Array* pool = std::allocator_traits<Alloc>::allocate(alloc, 5); in test_arrays()
[all …]
H A Dranges_destroy.pass.cpp106 using Array = Counted[M]; in test_arrays() typedef
107 std::allocator<Array> alloc; in test_arrays()
111 Array* buffer = Traits::allocate(alloc, N); in test_arrays()
113 Array& array_ref = *(buffer + i); in test_arrays()
131 using Array = Counted[A]; in test_arrays() typedef
132 std::allocator<Array> alloc; in test_arrays()
136 Array* buffer = Traits::allocate(alloc, N); in test_arrays()
138 Array& array_ref = *(buffer + i); in test_arrays()
158 using Array = Counted[A][B]; in test_arrays() typedef
159 std::allocator<Array> alloc; in test_arrays()
[all …]
H A Ddestroy.pass.cpp34 using Array = Counted[3]; in test_arrays() typedef
35 using Alloc = std::allocator<Array>; in test_arrays()
38 Array* pool = std::allocator_traits<Alloc>::allocate(alloc, 5); in test_arrays()
40 for (Array* p = pool; p != pool + 5; ++p) { in test_arrays()
41 Array& arr = *p; in test_arrays()
55 using Array = Counted[3][2]; in test_arrays() typedef
56 using Alloc = std::allocator<Array>; in test_arrays()
59 Array* pool = std::allocator_traits<Alloc>::allocate(alloc, 5); in test_arrays()
61 for (Array* p = pool; p != pool + 5; ++p) { in test_arrays()
62 Array& arr = *p; in test_arrays()
/llvm-project/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.assign/
H A Darray.extension.pass.cpp51 typedef std::array<int, 1> Array; in main() typedef
52 static_assert(std::is_nothrow_assignable<Tuple&, Array const&>::value, ""); in main()
56 typedef std::array<int, 1> Array; in main() typedef
57 static_assert(std::is_assignable<Tuple&, Array const&>::value, ""); in main()
58 static_assert(!std::is_nothrow_assignable<Tuple&, Array const&>::value, ""); in main()
72 typedef std::array<int, 1> Array; in main() typedef
73 static_assert(std::is_nothrow_assignable<Tuple&, Array&&>::value, ""); in main()
77 typedef std::array<int, 1> Array; in main() typedef
78 static_assert(std::is_assignable<Tuple&, Array&&>::value, ""); in main()
79 static_assert(!std::is_nothrow_assignable<Tuple&, Array&&>::value, ""); in main()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dloop-convert-const.cpp36 Str Array[N], OtherStr; variable
43 Array[I].constMember(0); in memberFunctionsAndOperators()
50 if (Array[I] < OtherStr) in memberFunctionsAndOperators()
66 Array[I].nonConstMember(0); in memberFunctionsAndOperators()
73 Array[I] = OtherStr; in memberFunctionsAndOperators()
90 copyArg(Array[I]); in usedAsParameterToFunctionOrOperator()
105 constRefArg(Array[I]); in usedAsParameterToFunctionOrOperator()
112 if (OtherStr < Array[I]) in usedAsParameterToFunctionOrOperator()
128 nonConstRefArg(Array[I]); in usedAsParameterToFunctionOrOperator()
237 Str &J = Array[I]; in takingReferences()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dsigned-char-misuse.cpp104 int Array[3] = {1, 2, 3}; in SignedCharCArraySubscript() local
106 …return Array[static_cast<unsigned int>(SCharacter)]; // CHECK-MESSAGES: [[@LINE]]:42: warning: 'si… in SignedCharCArraySubscript()
109 int SignedCharSTDArraySubscript(std::array<int, 3> Array, signed char SCharacter) { in SignedCharSTDArraySubscript() argument
110 …return Array[static_cast<unsigned int>(SCharacter)]; // CHECK-MESSAGES: [[@LINE]]:42: warning: 'si… in SignedCharSTDArraySubscript()
232 int Array[3] = {1, 2, 3}; in UnsignedCharCArraySubscript() local
234 return Array[static_cast<unsigned int>(USCharacter)]; in UnsignedCharCArraySubscript()
238 int Array[3] = {1, 2, 3}; in CastedCArraySubscript() local
240 return Array[static_cast<unsigned char>(SCharacter)]; in CastedCArraySubscript()
243 int UnsignedCharSTDArraySubscript(std::array<int, 3> Array, unsigned char USCharacter) { in UnsignedCharSTDArraySubscript() argument
244 return Array[static_cast<unsigned int>(USCharacter)]; in UnsignedCharSTDArraySubscript()
[all …]
/llvm-project/libc/benchmarks/
H A DLibcBenchmark.h263 // Interprets `Array` as a circular buffer of `Size` elements.
265 llvm::ArrayRef<T> Array; variable
277 llvm::ArrayRef<T> Array; variable
282 explicit const_iterator(llvm::ArrayRef<T> Array, size_t Index = 0)
283 : Array(Array), Index(Index), Offset(Index % Array.size()) {} in Array() argument
287 if (Offset == Array.size())
293 const T &operator*() const { return Array[Offset]; }
296 CircularArrayRef(llvm::ArrayRef<T> Array, size_ argument
307 cycle(llvm::ArrayRef<T> Array,size_t Size) cycle() argument
[all...]
/llvm-project/clang/test/Analysis/
H A Dlifetime-extended-regions.cpp36 struct Array { struct
47 auto&& a = Array<int>{}; // extends `Array<int>` in whole_object() argument
48 clang_analyzer_dump(a); // expected-warning-re {{&lifetime_extended_object{Array<int>, a, S{{[0-9]+}}} }} in whole_object()
58 int&& d = Array<int>{}.front(); // dangles `Array<int>` in member_access()
59 clang_analyzer_dump(d); // expected-warning-re {{&Element{temp_object{Array<int>, S{{[0-9]+}}}.array,0 S64b,int} }} in member_access()
63 int&& i = Array<int>{}.array[0]; // extends `Array<int>` in array_subscript()
64 clang_analyzer_dump(i); // expected-warning-re {{&Element{lifetime_extended_object{Array<in in array_subscript()
[all...]
/llvm-project/libcxx/test/libcxx/utilities/function.objects/func.require/
H A Dinvoke.pass.cpp17 struct Array struct
24 Array<char, 1>::type& f1(); argument
25 Array<char, 2>::type& f2() const;
27 Array<char, 1>::type& g1() &;
28 Array<char, 2>::type& g2() const &;
29 Array<char, 3>::type& g3() &&;
30 Array<char, 4>::type& g4() const &&;
/llvm-project/polly/lib/Exchange/
H A DJSONExporter.cpp100 static json::Array exportArrays(const Scop &S) { in exportArrays()
101 json::Array Arrays; in exportArrays()
109 json::Object Array; in exportArrays() local
110 json::Array Sizes; in exportArrays()
111 Array["name"] = SAI->getName(); in exportArrays()
122 Array["sizes"] = std::move(Sizes); in exportArrays()
124 Array["type"] = Buffer; in exportArrays()
126 Arrays.push_back(std::move(Array)); in exportArrays()
151 json::Array Statements; in getJSON()
159 json::Array Accesse in getJSON()
547 areArraysEqual(ScopArrayInfo * SAI,const json::Object & Array) areArraysEqual() argument
654 const json::Object &Array = *Arrays[ArrayIdx].getAsObject(); importArrays() local
[all...]

12345678910>>...18