/external/llvm/unittests/Support/ |
H A D | AllocatorTest.cpp | 19 BumpPtrAllocator Alloc; local 20 int *a = (int*)Alloc.Allocate(sizeof(int), 1); 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 1); 22 int *c = (int*)Alloc.Allocate(sizeof(int), 1); 31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); 33 BumpPtrAllocator Alloc2 = std::move(Alloc); 34 EXPECT_EQ(0U, Alloc.GetNumSlabs()); 44 Alloc = std::move(Alloc2); 46 EXPECT_EQ(1U, Alloc.GetNumSlabs()); 51 BumpPtrAllocator Alloc; local 63 BumpPtrAllocator Alloc; local 85 BumpPtrAllocator Alloc; local 106 BumpPtrAllocator Alloc; local 119 BumpPtrAllocator Alloc; local 127 BumpPtrAllocator Alloc; local 175 BumpPtrAllocatorImpl<MockSlabAllocator> Alloc; local [all...] |
/external/clang/test/CodeCompletion/ |
H A D | templates.cpp | 8 template<typename T, typename Alloc = std::allocator<T> > 9 class vector : Alloc { 14 template<typename Alloc> class vector<bool, Alloc>; 22 // CHECK-CC1-NEXT: vector<<#typename T#>{#, <#typename Alloc#>#}>
|
/external/llvm/include/llvm/Support/ |
H A D | StringSaver.h | 22 BumpPtrAllocator &Alloc; member in class:llvm::final 25 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} argument
|
/external/libcxx/test/support/ |
H A D | asan_testing.h | 19 template <typename T, typename Alloc> 20 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c ) 22 if ( std::is_same<Alloc, std::allocator<T> >::value && c.data() != NULL) 29 template <typename T, typename Alloc> 30 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c )
|
/external/llvm/unittests/CodeGen/ |
H A D | DIEHashTest.cpp | 26 BumpPtrAllocator Alloc; member in class:__anon13162::DIEHashTest 41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); 43 Die.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, Size); 50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); 52 Unnamed.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); 55 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data1, One); 56 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data1, One); 65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); 68 Foo.addValue(Alloc, dwarf::DW_AT_name, dwarf::DW_FORM_strp, FooStr); 69 Foo.addValue(Alloc, dwar [all...] |
/external/clang/test/CodeGenCXX/ |
H A D | mangle-alias-template.cpp | 4 template<typename T> using Alloc = alloc<T>; 5 template<typename T, typename A = Alloc<T>> struct vector {}; 27 Alloc<int> AC; 31 h<Alloc>(AC);
|
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
H A D | p2.cpp | 18 template<class T> struct Alloc {}; struct in namespace:StdExample 19 template<class T> using Vec = vector<T, Alloc<T>>; 27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}} 34 void g(TT<int, Alloc<int>>); 42 // v's type is same as vector<int, Alloc<int>>. 43 using VTest = vector<int, Alloc<int>>;
|
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_dense_alloc_test.cc | 25 typedef DenseSlabAlloc<int, 128, 128> Alloc; typedef 26 typedef Alloc::Cache Cache; 27 typedef Alloc::IndexT IndexT; 30 Alloc alloc; 37 IndexT idx = alloc.Alloc(&cache);
|
/external/llvm/lib/Support/ |
H A D | StringSaver.cpp | 15 char *P = Alloc.Allocate<char>(S.size() + 1);
|
/external/clang/test/SemaCXX/ |
H A D | PR9902.cpp | 16 template <class Alloc> 19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
|
H A D | PR9908.cpp | 10 template <class Alloc> 13 typedef Alloc allocator_type;
|
/external/libcxx/test/std/containers/unord/unord.map/ |
H A D | swap_member.pass.cpp | 13 // class Alloc = allocator<pair<const Key, T>>> 33 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 34 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; 35 C c1(0, Hash(1), Compare(1), Alloc(1)); 36 C c2(0, Hash(2), Compare(2), Alloc(2)); 44 assert(c1.get_allocator() == Alloc(1)); 53 assert(c2.get_allocator() == Alloc(2)); 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; 75 C c1(0, Hash(1), Compare(1), Alloc( 109 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 151 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 213 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 241 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 289 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 331 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 393 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 421 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 469 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 511 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/ |
H A D | swap_non_member.pass.cpp | 13 // class Alloc = allocator<pair<const Key, T>>> 33 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 34 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; 35 C c1(0, Hash(1), Compare(1), Alloc(1)); 36 C c2(0, Hash(2), Compare(2), Alloc(2)); 44 assert(c1.get_allocator() == Alloc(1)); 53 assert(c2.get_allocator() == Alloc(2)); 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; 75 C c1(0, Hash(1), Compare(1), Alloc( 109 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 151 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 213 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 241 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 289 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 331 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 393 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 421 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 469 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 511 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.multimap/ |
H A D | swap_member.pass.cpp | 13 // class Alloc = allocator<pair<const Key, T>>> 33 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 34 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; 36 C c1(0, Hash(1), Compare(1), Alloc(1)); 37 C c2(0, Hash(2), Compare(2), Alloc(2)); 45 assert(c1.get_allocator() == Alloc(1)); 54 assert(c2.get_allocator() == Alloc(2)); 62 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 63 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; 76 C c1(0, Hash(1), Compare(1), Alloc( 110 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 154 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 218 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 247 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 295 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 339 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 403 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 432 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 480 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 524 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/ |
H A D | swap_non_member.pass.cpp | 13 // class Alloc = allocator<pair<const Key, T>>> 32 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 33 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; 35 C c1(0, Hash(1), Compare(1), Alloc(1)); 36 C c2(0, Hash(2), Compare(2), Alloc(2)); 44 assert(c1.get_allocator() == Alloc(1)); 53 assert(c2.get_allocator() == Alloc(2)); 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 62 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; 75 C c1(0, Hash(1), Compare(1), Alloc( 109 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 153 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 217 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 246 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 294 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 338 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 402 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 431 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 479 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 523 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.multiset/ |
H A D | swap_member.pass.cpp | 13 // class Alloc = allocator<Value>> 31 typedef test_allocator<int> Alloc; typedef 32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; 34 C c1(0, Hash(1), Compare(1), Alloc(1)); 35 C c2(0, Hash(2), Compare(2), Alloc(2)); 43 assert(c1.get_allocator() == Alloc(1)); 52 assert(c2.get_allocator() == Alloc(2)); 60 typedef test_allocator<int> Alloc; typedef 61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; 74 C c1(0, Hash(1), Compare(1), Alloc( 108 typedef test_allocator<int> Alloc; typedef 150 typedef test_allocator<int> Alloc; typedef 212 typedef other_allocator<int> Alloc; typedef 241 typedef other_allocator<int> Alloc; typedef 289 typedef other_allocator<int> Alloc; typedef 331 typedef other_allocator<int> Alloc; typedef 393 typedef min_allocator<int> Alloc; typedef 422 typedef min_allocator<int> Alloc; typedef 470 typedef min_allocator<int> Alloc; typedef 512 typedef min_allocator<int> Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/ |
H A D | swap_non_member.pass.cpp | 13 // class Alloc = allocator<Value>> 31 typedef test_allocator<int> Alloc; typedef 32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; 34 C c1(0, Hash(1), Compare(1), Alloc(1)); 35 C c2(0, Hash(2), Compare(2), Alloc(2)); 43 assert(c1.get_allocator() == Alloc(1)); 52 assert(c2.get_allocator() == Alloc(2)); 60 typedef test_allocator<int> Alloc; typedef 61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; 74 C c1(0, Hash(1), Compare(1), Alloc( 108 typedef test_allocator<int> Alloc; typedef 150 typedef test_allocator<int> Alloc; typedef 212 typedef other_allocator<int> Alloc; typedef 241 typedef other_allocator<int> Alloc; typedef 289 typedef other_allocator<int> Alloc; typedef 331 typedef other_allocator<int> Alloc; typedef 393 typedef min_allocator<int> Alloc; typedef 422 typedef min_allocator<int> Alloc; typedef 470 typedef min_allocator<int> Alloc; typedef 512 typedef min_allocator<int> Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.set/ |
H A D | swap_member.pass.cpp | 13 // class Alloc = allocator<Value>> 31 typedef test_allocator<int> Alloc; typedef 32 typedef std::unordered_set<int, Hash, Compare, Alloc> C; 34 C c1(0, Hash(1), Compare(1), Alloc(1)); 35 C c2(0, Hash(2), Compare(2), Alloc(2)); 43 assert(c1.get_allocator() == Alloc(1)); 52 assert(c2.get_allocator() == Alloc(2)); 60 typedef test_allocator<int> Alloc; typedef 61 typedef std::unordered_set<int, Hash, Compare, Alloc> C; 74 C c1(0, Hash(1), Compare(1), Alloc( 108 typedef test_allocator<int> Alloc; typedef 150 typedef test_allocator<int> Alloc; typedef 212 typedef other_allocator<int> Alloc; typedef 241 typedef other_allocator<int> Alloc; typedef 289 typedef other_allocator<int> Alloc; typedef 331 typedef other_allocator<int> Alloc; typedef 393 typedef min_allocator<int> Alloc; typedef 422 typedef min_allocator<int> Alloc; typedef 470 typedef min_allocator<int> Alloc; typedef 512 typedef min_allocator<int> Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/ |
H A D | swap_non_member.pass.cpp | 13 // class Alloc = allocator<Value>> 31 typedef test_allocator<int> Alloc; typedef 32 typedef std::unordered_set<int, Hash, Compare, Alloc> C; 34 C c1(0, Hash(1), Compare(1), Alloc(1)); 35 C c2(0, Hash(2), Compare(2), Alloc(2)); 43 assert(c1.get_allocator() == Alloc(1)); 52 assert(c2.get_allocator() == Alloc(2)); 60 typedef test_allocator<int> Alloc; typedef 61 typedef std::unordered_set<int, Hash, Compare, Alloc> C; 74 C c1(0, Hash(1), Compare(1), Alloc( 108 typedef test_allocator<int> Alloc; typedef 150 typedef test_allocator<int> Alloc; typedef 212 typedef other_allocator<int> Alloc; typedef 241 typedef other_allocator<int> Alloc; typedef 289 typedef other_allocator<int> Alloc; typedef 331 typedef other_allocator<int> Alloc; typedef 393 typedef min_allocator<int> Alloc; typedef 422 typedef min_allocator<int> Alloc; typedef 470 typedef min_allocator<int> Alloc; typedef 512 typedef min_allocator<int> Alloc; typedef [all...] |
/external/libchrome/base/containers/ |
H A 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/google-breakpad/src/common/ |
H A D | memory_unittest.cc | 47 uint8_t *p = reinterpret_cast<uint8_t*>(allocator.Alloc(i)); 56 uint8_t *p = reinterpret_cast<uint8_t*>(allocator.Alloc(10000)); 59 uint8_t *p = reinterpret_cast<uint8_t*>(allocator.Alloc(i));
|
/external/libbrillo/brillo/ |
H A 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) { 85 template <typename T, typename Pred, typename Alloc> 87 std::map<std::string, T, Pred, Alloc>* out_value) { 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> [all...] |
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/ |
H A D | allocate_shared_no_variadics.pass.cpp | 69 template <class Alloc> 74 std::shared_ptr<Zero> p = std::allocate_shared<Zero>(Alloc()); 80 std::shared_ptr<One> p = std::allocate_shared<One>(Alloc(), i); 87 std::shared_ptr<Two> p = std::allocate_shared<Two>(Alloc(), i, bad); 94 std::shared_ptr<Three> p = std::allocate_shared<Three>(Alloc(), i, bad, bad);
|
/external/clang/include/clang/Analysis/Support/ |
H A D | BumpVector.h | 33 llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1> Alloc; member in class:clang::BumpVectorContext 37 BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {} 39 BumpVectorContext(BumpVectorContext &&Other) : Alloc(Other.Alloc) { 40 Other.Alloc.setInt(false); 41 Other.Alloc.setPointer(nullptr); 47 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {} 50 if (Alloc.getInt()) 51 delete Alloc.getPointer(); 54 llvm::BumpPtrAllocator &getAllocator() { return *Alloc [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | BlockCounter.h | 44 Factory(llvm::BumpPtrAllocator& Alloc);
|