Searched defs:new (Results 1 - 25 of 368) sorted by relevance

1234567891011>>

/external/clang/test/CXX/special/class.free/
H A Dp1.cpp5 void *operator new(size_t) {
8 void *operator new[](size_t) {
/external/clang/test/SemaCXX/Inputs/
H A Dwarn-new-overaligned-3.h3 // This header file pretends to be <new> from the system library, for the
6 void* operator new(unsigned long) {
9 void* operator new[](unsigned long) {
13 void* operator new(unsigned long, void *) {
17 void* operator new[](unsigned long, void *) {
/external/clang/test/Sema/
H A Darm-darwin-aapcs.cpp9 void* operator new(size_t size)
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dlibc_override_redefine.h34 // malloc/new/etc. (Typically this will be a windows msvcrt.dll that
52 void* operator new(size_t size) { return tc_new(size); }
54 void* operator new[](size_t size) { return tc_newarray(size); }
56 void* operator new(size_t size, const std::nothrow_t& nt) __THROW {
59 void* operator new[](size_t size, const std::nothrow_t& nt) __THROW {
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dlibc_override_redefine.h34 // malloc/new/etc. (Typically this will be a windows msvcrt.dll that
52 void* operator new(size_t size) { return tc_new(size); }
54 void* operator new[](size_t size) { return tc_newarray(size); }
56 void* operator new(size_t size, const std::nothrow_t& nt) __THROW {
59 void* operator new[](size_t size, const std::nothrow_t& nt) __THROW {
/external/antlr/antlr-3.4/runtime/Perl5/t/lib/My/Test/
H A DClass.pm14 sub new { subroutine
16 my $self = $class->SUPER::new(@args);
/external/bison/lib/
H A Dstrdup.c42 void *new = malloc (len); local
44 if (new == NULL)
47 return (char *) memcpy (new, s, len);
H A Dstrndup.c29 char *new = malloc (len + 1); local
31 if (new == NULL)
34 new[len] = '\0';
35 return memcpy (new, s, len);
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_placement_new.h13 // The file provides 'placement new'.
21 inline void *operator new(__sanitizer::operator_new_size_type sz, void *p) {
/external/chromium_org/sync/syncable/
H A Dsyncable_read_transaction.h25 void* operator new(size_t size) { return (::operator new)(size); }
/external/chromium_org/third_party/WebKit/Source/platform/text/
H A DBidiCharacterRun.cpp36 void* BidiCharacterRun::operator new(size_t sz)
/external/chromium_org/third_party/libjingle/overrides/allocator_shim/
H A Dallocator_proxy.cc18 // Override the global new/delete routines and proxy them over to the allocator
21 void* operator new(std::size_t n) throw() {
/external/chromium_org/third_party/tlslite/tlslite/utils/
H A Dopenssl_aes.py11 def new(key, mode, IV): function
H A Dopenssl_rc4.py11 def new(key): function
H A Dopenssl_tripledes.py11 def new(key, mode, IV): function
H A Dpython_aes.py11 def new(key, mode, IV): function
H A Dpython_rc4.py9 def new(key): function
/external/chromium_org/third_party/webrtc/voice_engine/test/win_test/
H A DWinTest.cc16 #define new DEBUG_NEW macro
/external/clang/test/CodeGenCXX/
H A DDynArrayInit.cpp7 inline void* operator new[](unsigned long, void* __p) { return __p; }
9 new (a) char[4]();
/external/tcpdump/
H A Dsetsignal.c77 struct sigaction old, new; local
79 memset(&new, 0, sizeof(new));
80 new.sa_handler = func;
82 new.sa_flags = SA_RESTART;
83 if (sigaction(sig, &new, &old) < 0)
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/
H A Dget_mangled_names.cc33 // When you are porting perftools to a new compiler or architecture
35 // symbol names for operator new and friends at the top of
52 #include <new> // for nothrow_t
54 static char m; // some dummy memory so new doesn't return NULL.
56 void* operator new(size_t size) { return &m; }
58 void* operator new[](size_t size) { return &m; }
61 void* operator new(size_t size, const std::nothrow_t&) throw() { return &m; }
63 void* operator new[](size_t size, const std::nothrow_t&) throw() { return &m; }
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/
H A Dget_mangled_names.cc33 // When you are porting perftools to a new compiler or architecture
35 // symbol names for operator new and friends at the top of
52 #include <new> // for nothrow_t
54 static char m; // some dummy memory so new doesn't return NULL.
56 void* operator new(size_t size) { return &m; }
58 void* operator new[](size_t size) { return &m; }
61 void* operator new(size_t size, const std::nothrow_t&) throw() { return &m; }
63 void* operator new[](size_t size, const std::nothrow_t&) throw() { return &m; }
/external/clang/test/CXX/expr/expr.unary/expr.new/
H A Dp19.cpp4 // 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 X
[all...]
/external/clang/test/SemaCXX/
H A Dnew-null.cpp8 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_
[all...]
H A Dwarn-new-overaligned.cpp15 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[]' shoul
[all...]

Completed in 829 milliseconds

1234567891011>>