Lines Matching refs:Wrapper

16 template <typename Fundamental> struct Wrapper : llvm::FoldingSetNode {  struct
19 Wrapper(Fundamental F) : F(F) {} in Wrapper() function
28 void concat(const ImmutableList<Wrapper<char>> &L, char *Buffer) { in concat()
30 for (ImmutableList<Wrapper<char>>::iterator It = L.begin(), End = L.end(); in concat()
38 ImmutableList<Wrapper<int>>::Factory f; in TEST_F()
44 ImmutableList<Wrapper<int>> L = f.getEmptyList(); in TEST_F()
51 ImmutableList<Wrapper<int>>::Factory f; in TEST_F()
52 ImmutableList<Wrapper<int>> L = f.getEmptyList(); in TEST_F()
54 ImmutableList<Wrapper<int>> L2 = f.add(3, L); in TEST_F()
70 ImmutableList<Wrapper<int>> L3 = f.add(2, L); in TEST_F()
113 ImmutableList<Wrapper<int>>::Factory f; in TEST_F()
115 ImmutableList<Wrapper<int>> L = f.getEmptyList(); in TEST_F()
116 ImmutableList<Wrapper<int>> L2 = f.create(3); in TEST_F()
126 ImmutableList<Wrapper<int>>::Factory f; in TEST_F()
128 ImmutableList<Wrapper<int>> L = f.getEmptyList(); in TEST_F()
129 ImmutableList<Wrapper<int>> L2 = f.add(5, f.add(4, f.add(3, L))); in TEST_F()
130 ImmutableList<Wrapper<int>> L3 = f.add(43, f.add(20, f.add(9, L2))); in TEST_F()
131 ImmutableList<Wrapper<int>> L4 = f.add(9, L2); in TEST_F()
132 ImmutableList<Wrapper<int>> L5 = f.add(9, L2); in TEST_F()
183 struct ExplicitCtorWrapper : public Wrapper<Fundamental> {
184 explicit ExplicitCtorWrapper(Fundamental F) : Wrapper<Fundamental>(F) {} in ExplicitCtorWrapper()
226 ImmutableList<Wrapper<char>>::Factory f; in TEST_F()
227 ImmutableList<Wrapper<char>> L = f.getEmptyList(); in TEST_F()
229 ImmutableList<Wrapper<char>> L2 = f.add('i', f.add('e', f.add('a', L))); in TEST_F()
230 ImmutableList<Wrapper<char>> L3 = f.add('u', f.add('o', L2)); in TEST_F()
239 ImmutableList<Wrapper<long>>::Factory f; in TEST_F()
240 ImmutableList<Wrapper<long>> L = f.getEmptyList(); in TEST_F()
242 ImmutableList<Wrapper<long>> L2 = f.add(3, f.add(4, f.add(5, L))); in TEST_F()
243 ImmutableList<Wrapper<long>> L3 = f.add(0, f.add(1, f.add(2, L2))); in TEST_F()
246 for (ImmutableList<Wrapper<long>>::iterator I = L.begin(), E = L.end(); in TEST_F()
253 for (ImmutableList<Wrapper<long>>::iterator I = L2.begin(), E = L2.end(); in TEST_F()
261 for (ImmutableList<Wrapper<long>>::iterator I = L3.begin(), E = L3.end(); in TEST_F()
269 static_assert(std::is_trivially_copyable_v<ImmutableList<Wrapper<long>>>,