Home
last modified time | relevance | path

Searched refs:Items (Results 1 – 25 of 45) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DCallHierarchyTests.cpp78 std::vector<CallHierarchyItem> Items = in TEST() local
80 ASSERT_THAT(Items, ElementsAre(withName("callee"))); in TEST()
123 std::vector<CallHierarchyItem> Items = in TEST() local
125 ASSERT_THAT(Items, ElementsAre(withName("callee"))); in TEST()
166 std::vector<CallHierarchyItem> Items = in TEST() local
168 ASSERT_THAT(Items, ElementsAre(withName("callee"))); in TEST()
199 std::vector<CallHierarchyItem> Items = in TEST() local
202 auto Incoming = incomingCalls(Items[0], Index.get()); in TEST()
265 std::vector<CallHierarchyItem> Items = in TEST() local
374 std::vector<CallHierarchyItem> Items = in TEST() local
[all …]
/llvm-project-15.0.7/llvm/unittests/FuzzMutate/
H A DReservoirSamplerTest.cpp33 std::vector<int> Items = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; in TEST() local
37 std::vector<int> Counts(Items.size(), 0); in TEST()
41 int N = Items.size() * 5 * 100; in TEST()
43 auto Sampler = makeSampler(Rand, Items); in TEST()
49 double Ps = 1.0 / Items.size(); in TEST()
55 assert(Items.size() == 10 && "Our chi-squared values assume 10 items"); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DBinaryItemStream.h46 const auto &Item = Items[*ExpectedIndex]; in readBytes()
60 Buffer = Traits::bytes(Items[*ExpectedIndex]); in readLongestContiguousChunk()
65 Items = ItemArray; in setItems()
76 ItemEndOffsets.reserve(Items.size()); in computeItemOffsets()
78 for (const auto &Item : Items) { in computeItemOffsets()
93 assert(Idx < Items.size() && "binary search for offset failed"); in translateOffsetIndex()
98 ArrayRef<T> Items; variable
H A DOnDiskHashTable.h364 const unsigned char *Items = Base + Offset; variable
368 unsigned Len = endian::readNext<uint16_t, little, unaligned>(Items);
373 endian::readNext<hash_value_type, little, unaligned>(Items);
377 Info::ReadKeyDataLength(Items);
382 Items += ItemLen;
388 InfoPtr->ReadKey((const unsigned char *const)Items, L.first);
392 Items += ItemLen;
397 return iterator(X, Items + L.first, L.second, InfoPtr);
H A DFormatVariadic.h146 operator()(Ts &... Items) { in operator()
147 return {{&Items...}}; in operator()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DStringExtrasTest.cpp39 std::vector<std::string> Items; in TEST() local
40 EXPECT_EQ("", join(Items.begin(), Items.end(), " <sep> ")); in TEST()
42 Items = {"foo"}; in TEST()
43 EXPECT_EQ("foo", join(Items.begin(), Items.end(), " <sep> ")); in TEST()
45 Items = {"foo", "bar"}; in TEST()
46 EXPECT_EQ("foo <sep> bar", join(Items.begin(), Items.end(), " <sep> ")); in TEST()
48 Items = {"foo", "bar", "baz"}; in TEST()
50 join(Items.begin(), Items.end(), " <sep> ")); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeViewRecordIO.h145 Error mapVectorN(T &Items, const ElementMapper &Mapper,
149 Size = static_cast<SizeType>(Items.size());
154 for (auto &X : Items) {
159 Size = static_cast<SizeType>(Items.size());
163 for (auto &X : Items) {
174 Items.push_back(Item);
182 Error mapVectorTail(T &Items, const ElementMapper &Mapper,
186 for (auto &Item : Items) {
196 Items.push_back(Field);
/llvm-project-15.0.7/clang/include/clang/AST/
H A DOSLog.h113 SmallVector<OSLogBufferItem, 4> Items;
120 for (auto &item : Items) { in size()
129 Items, [](const OSLogBufferItem &Item) { return Item.getIsPrivate(); }); in hasPrivateItems()
133 return llvm::any_of(Items, [](const OSLogBufferItem &Item) { in hasNonScalarOrMask()
148 unsigned char getNumArgsByte() const { return Items.size(); } in getNumArgsByte()
/llvm-project-15.0.7/clang/lib/AST/
H A DOSLog.cpp136 Layout.Items.clear(); in computeLayout()
140 Layout.Items.emplace_back(OSLogBufferItem::MaskKind, nullptr, in computeLayout()
146 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, *Data.FieldWidth, in computeLayout()
151 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, *Data.Precision, in computeLayout()
157 Layout.Items.emplace_back(OSLogBufferItem::CountKind, *Data.Count, Size, in computeLayout()
161 Layout.Items.emplace_back(Ctx, CharUnits::fromQuantity(*Data.Size), in computeLayout()
169 Layout.Items.emplace_back(*Data.Kind, Data.E, Size, Data.Flags); in computeLayout()
172 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, Data.E, Size, in computeLayout()
/llvm-project-15.0.7/compiler-rt/lib/orc/unittests/
H A Dstl_extras_test.cpp53 template <typename... Ts> auto operator()(Ts &&... Items) { in operator ()() argument
54 return std::make_tuple(apply_one(Items)...); in operator ()()
59 auto Items = std::make_tuple(1, std::string("Test"), 'X'); in TEST() local
60 auto Values = __orc_rt::apply_tuple(apply_variadic(), Items); in TEST()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dlist_test.cpp18 static ListItem Items[6]; variable
19 static ListItem *X = &Items[0];
20 static ListItem *Y = &Items[1];
21 static ListItem *Z = &Items[2];
22 static ListItem *A = &Items[3];
23 static ListItem *B = &Items[4];
24 static ListItem *C = &Items[5];
/llvm-project-15.0.7/llvm/include/llvm/FuzzMutate/
H A DRandom.h53 template <typename RangeT> ReservoirSampler &sample(RangeT &&Items) { in sample() argument
54 for (auto &I : Items) in sample()
75 ReservoirSampler<ElT, GenT> makeSampler(GenT &RandGen, RangeT &&Items) { in makeSampler() argument
77 RS.sample(Items); in makeSampler()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DHash.cpp61 ArrayRef<ulittle32_t> Items( in hashStringV2()
64 for (ulittle32_t Item : Items) { in hashStringV2()
69 Buffer = Buffer.slice(Items.size() * sizeof(ulittle32_t)); in hashStringV2()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DGlobList.cpp47 Items.reserve(Globs.count(',') + Globs.count('\n') + 1); in GlobList()
53 Items.push_back(std::move(Item)); in GlobList()
60 for (const GlobListItem &Item : llvm::reverse(Items)) { in contains()
H A DGlobList.h49 SmallVector<GlobListItem, 0> Items; variable
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DStringExtras.h441 Args &&... Items) { in join_items_impl()
444 join_items_impl(Result, Separator, std::forward<Args>(Items)...); in join_items_impl()
460 inline size_t join_items_size(const A1 &A, Args &&... Items) { in join_items_size() argument
461 return join_one_item_size(A) + join_items_size(std::forward<Args>(Items)...); in join_items_size()
486 inline std::string join_items(Sep Separator, Args &&... Items) { in join_items() argument
488 if (sizeof...(Items) == 0) in join_items()
492 size_t NI = detail::join_items_size(std::forward<Args>(Items)...); in join_items()
493 Result.reserve(NI + (sizeof...(Items) - 1) * NS + 1); in join_items()
494 detail::join_items_impl(Result, Separator, std::forward<Args>(Items)...); in join_items()
/llvm-project-15.0.7/llvm/lib/ProfileData/
H A DRawMemProfReader.cpp82 llvm::SmallVector<SegmentEntry> Items; in readSegmentEntries() local
84 Items.push_back(*reinterpret_cast<const SegmentEntry *>( in readSegmentEntries()
87 return Items; in readSegmentEntries()
96 llvm::SmallVector<std::pair<uint64_t, MemInfoBlock>> Items; in readMemInfoBlocks() local
100 Items.push_back({Id, MIB}); in readMemInfoBlocks()
104 return Items; in readMemInfoBlocks()
112 CallStackMap Items; in readStackInfo() local
123 Items[StackId] = CallStack; in readStackInfo()
125 return Items; in readStackInfo()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/
H A DLinePrinter.h63 template <typename... Ts> void formatLine(const char *Fmt, Ts &&...Items) { in formatLine() argument
64 printLine(formatv(Fmt, std::forward<Ts>(Items)...)); in formatLine()
66 template <typename... Ts> void format(const char *Fmt, Ts &&...Items) { in format() argument
67 print(formatv(Fmt, std::forward<Ts>(Items)...)); in format()
/llvm-project-15.0.7/lldb/tools/lldb-test/
H A DFormatUtil.h48 template <typename... Ts> void formatLine(const char *Fmt, Ts &&... Items) { in formatLine() argument
49 printLine(llvm::formatv(Fmt, std::forward<Ts>(Items)...)); in formatLine()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DSearchableTableEmitter.cpp198 const std::vector<Record *> &Items);
200 const std::vector<Record *> &Items);
576 const std::vector<Record *> &Items) { in collectEnumEntries() argument
577 for (auto EntryRec : Items) { in collectEnumEntries()
605 GenericTable &Table, const std::vector<Record *> &Items) { in collectTableEntries() argument
606 if (Items.empty()) in collectTableEntries()
610 for (auto EntryRec : Items) { in collectTableEntries()
763 std::vector<Record *> Items = Records.getAllDerivedDefinitions(TableName); in run() local
775 collectEnumEntries(*Enum, NameField, ValueField, Items); in run()
799 collectTableEntries(*Table, Items); in run()
H A DCodeGenHwModes.cpp42 Items.push_back(std::make_pair(ModeId, Objects[i])); in HwModeSelect()
49 for (const PairType &P : Items) in dump()
H A DInfoByHwMode.cpp33 for (const HwModeSelect::PairType &P : MS.Items) { in ValueTypeByHwMode()
143 for (const HwModeSelect::PairType &P : MS.Items) { in RegSizeInfoByHwMode()
190 for (const HwModeSelect::PairType &P : MS.Items) { in EncodingInfoByHwMode()
H A DCodeGenHwModes.h38 std::vector<PairType> Items; member
/llvm-project-15.0.7/clang-tools-extra/pseudo/lib/grammar/
H A DLRGraph.cpp101 llvm::ArrayRef<Item> AllItems = S.Items; in nextAvailableKernelItems()
126 for (const Item &I : S.Items) { in availableRecovery()
157 for (const auto &Item : Items) in dump()
/llvm-project-15.0.7/clang-tools-extra/clangd/support/
H A DMarkup.cpp397 for (auto &D : Items) { in renderMarkdown()
407 for (auto &D : Items) { in renderPlainText()
454 Items.emplace_back(); in addItem()
455 return Items.back(); in addItem()

12