HomeSort by relevance Sort by last modified time
    Searched defs:new (Results 26 - 50 of 307) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/libcxx/test/localization/locales/locale/locale.cons/
char_pointer.pass.cpp 15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
locale_char_pointer_cat.pass.cpp 15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
locale_locale_cat.pass.cpp 15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
locale_string_cat.pass.cpp 15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
string.pass.cpp 15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
  /external/mesa3d/src/gallium/drivers/nouveau/
nouveau_heap.c 104 struct nouveau_heap *new = r->next; local
106 new->prev = r->prev;
108 r->prev->next = new;
109 new->size += r->size;
110 new->start = r->start;
113 r = new;
  /external/clang/test/CXX/expr/expr.unary/expr.new/
p19.cpp 4 // Operator delete template for placement new with global lookup
9 static void* operator new(size_t) {
19 // Using the global operator new suppresses the search for a
21 ::new X0<2>;
23 new X0<3>; // expected-note 2{{instantiation}}
26 // Operator delete template for placement new[] with global lookup
31 static void* operator new[](size_t) {
41 // Using the global operator new suppresses the search for a
43 ::new X1<2> [17];
45 new X1<3> [17]; // expected-note 2{{instantiation}
    [all...]
  /external/clang/test/SemaCXX/
new-null.cpp 8 void *operator new(size_t n) {
9 return nullptr; // expected-warning {{'operator new' should not return a null pointer unless it is declared 'throw()' or 'noexcept'}}
11 void *operator new[](size_t n) noexcept {
19 void *operator new(size_t n) throw() {
22 void *operator new[](size_t n) {
25 // expected-warning@-2 {{'operator new[]' should not return a null pointer unless it is declared 'throw()' or 'noexcept'}}
27 // expected-warning-re@-4 {{'operator new[]' should not return a null pointer unless it is declared 'throw()'{{$}}}}
33 void *operator new(size_t n) {
39 // expected-warning@-5 {{'operator new' should not return a null pointer unless it is declared 'throw()'}}
42 void *operator new[](size_t n)
    [all...]
warn-new-overaligned.cpp 15 new Test; // expected-warning {{type 'test1::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
16 new Test[10]; // expected-warning {{type 'test1::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
28 new Test; // expected-warning {{type 'test2::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
29 new Test[10]; // expected-warning {{type 'test2::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
40 void* operator new(unsigned long) {
41 return 0; // expected-warning {{'operator new' should not return a null pointer unless it is declared 'throw()'}}
49 new Test;
50 new Test[10]; // expected-warning {{type 'test3::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
61 void* operator new[](unsigned long) {
62 return 0; // expected-warning {{'operator new[]' should not return a null pointer unless it is declared 'throw()'}
    [all...]
  /external/compiler-rt/lib/asan/
asan_new_delete.cc 12 // Interceptors for operators new and delete.
35 // Fake std::nothrow_t to avoid including <new>.
44 // On OS X it's not enough to just provide our own 'operator new' and
47 // dylib and libstdc++, each of those'll have its implementation of new and
62 void *operator new(size_t size) { OPERATOR_NEW_BODY(FROM_NEW); }
64 void *operator new[](size_t size) { OPERATOR_NEW_BODY(FROM_NEW_BR); }
66 void *operator new(size_t size, std::nothrow_t const&)
69 void *operator new[](size_t size, std::nothrow_t const&)
  /external/compiler-rt/lib/msan/
msan_new_delete.cc 12 // Interceptors for operators new and delete.
31 // Fake std::nothrow_t to avoid including <new>.
42 void *operator new(size_t size) { OPERATOR_NEW_BODY; }
44 void *operator new[](size_t size) { OPERATOR_NEW_BODY; }
46 void *operator new(size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
48 void *operator new[](size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
  /external/libcxx/src/
new.cpp 1 //===--------------------------- new.cpp ----------------------------------===//
14 #include "new"
25 // shared library. The global holding the current new handler is
40 // Implement all new and delete operators as weak definitions
46 operator new(std::size_t size)
73 operator new(size_t size, const std::nothrow_t&) _NOEXCEPT
80 p = ::operator new(size);
92 operator new[](size_t size)
97 return ::operator new(size);
102 operator new[](size_t size, const std::nothrow_t&) _NOEXCEP
    [all...]
  /external/libcxxabi/src/
cxa_new_delete.cpp 9 // This file implements the new and delete operators.
14 #include <new>
18 [new.delete.single]
36 operator new(std::size_t size)
62 [new.delete.single]
64 Calls operator new(size). If the call returns normally, returns the result of
69 operator new(size_t size, const std::nothrow_t&)
79 p = ::operator new(size);
88 [new.delete.array]
90 Returns operator new(size)
    [all...]
  /external/oprofile/libutil++/tests/
utility_tests.cpp 13 #include <new>
24 void* operator new(size_t size) throw(bad_alloc)
30 void* operator new[](size_t size) throw(bad_alloc)
54 cerr << "new(size_t) leak\n";
59 cerr << "new[](size_t) leak\n";
70 scoped_ptr<A> a(new A);
72 scoped_ptr<A> a(new A);
83 scoped_array<A> b(new A[10]);
85 scoped_array<A> a(new A[10]);
  /art/compiler/utils/
allocation.h 27 // Allocate a new ArenaObject of 'size' bytes in the Arena.
28 void* operator new(size_t size, ArenaAllocator* allocator) {
39 void* operator new(size_t size) {
  /external/chromium_org/sync/syncable/
model_neutral_mutable_entry.h 104 void* operator new(size_t size) { return (::operator new)(size); }
  /external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/
radeon_list.c 37 struct rc_list * new = memory_pool_malloc(pool, sizeof(struct rc_list)); local
38 new->Item = item;
39 new->Next = NULL;
40 new->Prev = NULL;
42 return new;
  /external/chromium_org/third_party/mesa/src/src/glsl/
glsl_symbol_table.h 29 #include <new>
54 /* Callers of this ralloc-based new need not call delete. It's
56 static void* operator new(size_t size, void *ctx)
  /external/chromium_org/third_party/tlslite/tlslite/utils/
pycrypto_aes.py 12 def new(key, mode, IV): function
21 self.context = Crypto.Cipher.AES.new(key, mode, IV)
pycrypto_rc4.py 12 def new(key): function
20 self.context = Crypto.Cipher.ARC4.new(key)
pycrypto_tripledes.py 12 def new(key, mode, IV): function
21 self.context = Crypto.Cipher.DES3.new(key, mode, IV)
  /external/chromium_org/third_party/webrtc/base/
scoped_autorelease_pool.h 12 // an instance of this class using "new" - that will result in a compile-time
42 // Declaring private overrides of new and delete here enforces the "only use
45 // Note: new is declared as "throw()" to get around a gcc warning about new
48 void* operator new(size_t size) throw() { return NULL; }
  /external/ipsec-tools/src/racoon/
throttle.c 124 * No match, if auth failed, allocate a new throttle entry
144 time_t new; local
147 new = remaining + isakmp_cfg_config.auth_throttle;
149 if (new > THROTTLE_PENALTY_MAX)
150 new = THROTTLE_PENALTY_MAX;
152 te->penalty = now + new;
vmbuf.c 124 vchar_t *new; local
131 if ((new = vmalloc(src->l)) == NULL)
134 memcpy(new->v, src->v, src->l);
136 return new;
  /external/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/
dtor.pass.cpp 18 #include <new>
22 void* operator new[](size_t sz)
24 return operator new(sz);
37 std::locale l(std::locale::classic(), new std::ctype<char>);
44 std::locale l(std::locale::classic(), new std::ctype<char>(table));
51 new std::ctype<char>(new std::ctype<char>::mask[256], true));

Completed in 503 milliseconds

12 3 4 5 6 7 8 91011>>