/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 19 BumpPtrAllocator Alloc; in TEST() local 20 int *a = (int*)Alloc.Allocate(sizeof(int), 1); in TEST() 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 1); in TEST() 22 int *c = (int*)Alloc.Allocate(sizeof(int), 1); in TEST() 31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 33 BumpPtrAllocator Alloc2 = std::move(Alloc); in TEST() 34 EXPECT_EQ(0U, Alloc.GetNumSlabs()); in TEST() 44 Alloc = std::move(Alloc2); in TEST() 46 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 51 BumpPtrAllocator Alloc; in TEST() local [all …]
|
/external/llvm/unittests/CodeGen/ |
D | DIEHashTest.cpp | 26 BumpPtrAllocator Alloc; member in __anon74fd4b940111::DIEHashTest 41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F() 43 Die.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, Size); in TEST_F() 50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 52 Unnamed.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F() 55 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data1, One); in TEST_F() 56 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data1, One); in TEST_F() 65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 68 Foo.addValue(Alloc, dwarf::DW_AT_name, dwarf::DW_FORM_strp, FooStr); in TEST_F() 69 Foo.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multiset/ |
D | swap_member.pass.cpp | 31 typedef test_allocator<int> Alloc; in main() typedef 32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 43 assert(c1.get_allocator() == Alloc(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 60 typedef test_allocator<int> Alloc; in main() typedef 61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.set/ |
D | swap_member.pass.cpp | 31 typedef test_allocator<int> Alloc; in main() typedef 32 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 43 assert(c1.get_allocator() == Alloc(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 60 typedef test_allocator<int> Alloc; in main() typedef 61 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/ |
D | swap_non_member.pass.cpp | 31 typedef test_allocator<int> Alloc; in main() typedef 32 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 43 assert(c1.get_allocator() == Alloc(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 60 typedef test_allocator<int> Alloc; in main() typedef 61 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/ |
D | swap_non_member.pass.cpp | 31 typedef test_allocator<int> Alloc; in main() typedef 32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 43 assert(c1.get_allocator() == Alloc(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 60 typedef test_allocator<int> Alloc; in main() typedef 61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/ |
D | swap_non_member.pass.cpp | 33 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 34 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 44 assert(c1.get_allocator() == Alloc(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.map/ |
D | swap_member.pass.cpp | 33 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 34 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 44 assert(c1.get_allocator() == Alloc(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/ |
D | swap_member.pass.cpp | 33 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 34 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 36 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 37 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 45 assert(c1.get_allocator() == Alloc(1)); in main() 54 assert(c2.get_allocator() == Alloc(2)); in main() 62 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 63 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 76 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/ |
D | swap_non_member.pass.cpp | 32 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 33 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 44 assert(c1.get_allocator() == Alloc(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 62 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libbrillo/brillo/ |
D | value_conversion.h | 65 template <typename T, typename Pred, typename Alloc> 67 std::map<std::string, T, Pred, Alloc>* out_value); 69 template <typename T, typename Alloc> 70 bool FromValue(const base::Value& in_value, std::vector<T, Alloc>* out_value) { in FromValue() 85 template <typename T, typename Pred, typename Alloc> 87 std::map<std::string, T, Pred, Alloc>* out_value) { in FromValue() 114 template <typename T, typename Pred, typename Alloc> 116 const std::map<std::string, T, Pred, Alloc>& dictionary); 118 template <typename T, typename Alloc> 119 std::unique_ptr<base::Value> ToValue(const std::vector<T, Alloc>& list) { in ToValue() [all …]
|
/external/libchrome/base/containers/ |
D | hash_tables.h | 137 class Alloc = std::allocator<std::pair<const Key, T>>> 138 using hash_map = std::unordered_map<Key, T, Hash, Pred, Alloc>; 143 class Alloc = std::allocator<std::pair<const Key, T>>> 144 using hash_multimap = std::unordered_multimap<Key, T, Hash, Pred, Alloc>; 149 class Alloc = std::allocator<Key>> 150 using hash_multiset = std::unordered_multiset<Key, Hash, Pred, Alloc>; 155 class Alloc = std::allocator<Key>> 156 using hash_set = std::unordered_set<Key, Hash, Pred, Alloc>; 165 class Alloc = std::allocator<std::pair<const Key, T>>> 166 using hash_map = BASE_HASH_IMPL_NAMESPACE::hash_map<Key, T, Hash, Pred, Alloc>; [all …]
|
/external/libcxx/test/support/ |
D | asan_testing.h | 19 template <typename T, typename Alloc> 20 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c ) in is_contiguous_container_asan_correct() 22 if ( std::is_same<Alloc, std::allocator<T> >::value && c.data() != NULL) in is_contiguous_container_asan_correct() 29 template <typename T, typename Alloc> 30 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c ) in is_contiguous_container_asan_correct()
|
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
D | p2.cpp | 18 template<class T> struct Alloc {}; struct 19 template<class T> using Vec = vector<T, Alloc<T>>; 27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}} in process() 34 void g(TT<int, Alloc<int>>); 43 using VTest = vector<int, Alloc<int>>;
|
/external/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_dense_alloc_test.cc | 25 typedef DenseSlabAlloc<int, 128, 128> Alloc; in TEST() typedef 26 typedef Alloc::Cache Cache; in TEST() 27 typedef Alloc::IndexT IndexT; in TEST() 30 Alloc alloc; in TEST() 37 IndexT idx = alloc.Alloc(&cache); in TEST()
|
/external/clang/include/clang/Analysis/Support/ |
D | BumpVector.h | 33 llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1> Alloc; variable 37 BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {} in BumpVectorContext() 39 BumpVectorContext(BumpVectorContext &&Other) : Alloc(Other.Alloc) { in BumpVectorContext() 40 Other.Alloc.setInt(false); in BumpVectorContext() 41 Other.Alloc.setPointer(nullptr); in BumpVectorContext() 47 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {} in BumpVectorContext() 50 if (Alloc.getInt()) in ~BumpVectorContext() 51 delete Alloc.getPointer(); in ~BumpVectorContext() 54 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); } in getAllocator()
|
/external/clang/test/CodeCompletion/ |
D | templates.cpp | 8 template<typename T, typename Alloc = std::allocator<T> > 9 class vector : Alloc { 14 template<typename Alloc> class vector<bool, Alloc>;
|
/external/llvm/include/llvm/Support/ |
D | StringSaver.h | 22 BumpPtrAllocator &Alloc; variable 25 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} in StringSaver() argument
|
/external/clang/test/CodeGenCXX/ |
D | mangle-alias-template.cpp | 4 template<typename T> using Alloc = alloc<T>; typedef 5 template<typename T, typename A = Alloc<T>> struct vector {}; 27 Alloc<int> AC; in z() 31 h<Alloc>(AC); in z()
|
/external/llvm/lib/CodeGen/ |
D | LiveRangeCalc.cpp | 37 Alloc = VNIA; in reset() 43 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument 50 LR.createDeadDef(DefIdx, Alloc); in createDeadDef() 74 LI.createSubRangeFrom(*Alloc, ClassMask, LI); in calculate() 88 CommonRange = LI.createSubRangeFrom(*Alloc, Common, S); in calculate() 94 createDeadDef(*Indexes, *Alloc, *CommonRange, MO); in calculate() 99 LiveInterval::SubRange *NewRange = LI.createSubRange(*Alloc, Mask); in calculate() 101 createDeadDef(*Indexes, *Alloc, *NewRange, MO); in calculate() 108 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate() 123 LI.constructMainRangeFromSubranges(*Indexes, *Alloc); in calculate() [all …]
|
/external/lzma/C/Util/Lzma/ |
D | makefile.gcc | 9 Alloc.o \ 25 Alloc.o: ../../Alloc.c 26 $(CXX) $(CFLAGS) ../../Alloc.c
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/ |
D | allocate_shared_no_variadics.pass.cpp | 69 template <class Alloc> 74 std::shared_ptr<Zero> p = std::allocate_shared<Zero>(Alloc()); in test() 80 std::shared_ptr<One> p = std::allocate_shared<One>(Alloc(), i); in test() 87 std::shared_ptr<Two> p = std::allocate_shared<Two>(Alloc(), i, bad); in test() 94 std::shared_ptr<Three> p = std::allocate_shared<Three>(Alloc(), i, bad, bad); in test()
|
/external/libcxx/include/experimental/ |
D | dynarray | 45 template <class Alloc> 46 dynarray(allocator_arg_t, const Alloc& a, size_type c, const Alloc& alloc); 47 template <class Alloc> 48 dynarray(allocator_arg_t, const Alloc& a, size_type c, const T& v, const Alloc& alloc); 49 template <class Alloc> 50 dynarray(allocator_arg_t, const Alloc& a, const dynarray& d, const Alloc& alloc); 51 template <class Alloc> 52 dynarray(allocator_arg_t, const Alloc& a, initializer_list<T>, const Alloc& alloc);
|
/external/libcxx/test/std/utilities/memory/default.allocator/ |
D | allocator_pointers.pass.cpp | 34 template <typename Alloc> 37 typename std::allocator_traits<Alloc>::pointer vp; in test_pointer() 38 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer() 68 template <typename Alloc> 71 typename std::allocator_traits<Alloc>::void_pointer vp; in test_void_pointer() 72 typename std::allocator_traits<Alloc>::const_void_pointer cvp; in test_void_pointer()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ProgramStateTrait.h | 88 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 89 return new typename data_type::Factory(Alloc); 140 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 141 return new typename data_type::Factory(Alloc); 179 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 180 return new typename data_type::Factory(Alloc);
|