Searched defs:new (Results 1 - 25 of 287) 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.cpp10 void* operator new(size_t size)
/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/toybox/toys/android/
H A Dsetenforce.c22 char *new = *toys.optargs; local
26 else if (!strcmp(new, "1") || !strcasecmp(new, "enforcing")) state = 1;
27 else if (!strcmp(new, "0") || !strcasecmp(new, "permissive")) state = 0;
28 else error_exit("Invalid state: %s", new);
31 if (ret == -1) perror_msg("Couldn't set enforcing status to '%s'", new);
/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/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...]
/external/compiler-rt/test/asan/TestCases/Posix/
H A Dnew_array_cookie_with_new_from_class.cc1 // Test that we do not poison the array cookie if the operator new is defined
7 #include <new>
13 void *operator new(size_t s) { return Allocate(s); }
14 void *operator new[] (size_t s) { return Allocate(s); }
19 return allocated = ::new char[s];
27 return new Foo[n];
/external/libcxx/src/
H A Dnew.cpp1 //===--------------------------- 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_
[all...]
/external/libcxxabi/src/
H A Dcxa_new_delete.cpp9 // 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(siz
[all...]
/external/pdfium/core/src/fxcodec/jbig2/
H A DJBig2_Object.cpp9 void *CJBig2_Object::operator new(size_t size, CJBig2_Module *pModule, FX_LPCSTR filename, int line)
20 void *CJBig2_Object::operator new(size_t size, CJBig2_Module *pModule)
35 void *CJBig2_Object::operator new[](size_t size, CJBig2_Module *pModule, size_t unit_size,
53 void *CJBig2_Object::operator new[](size_t size, CJBig2_Module *pModule, size_t unit_size)
/external/boringssl/src/util/bot/go/
H A Denv.py34 new = bootstrap.prepare_go_environ() variable
37 for key, value in sorted(new.iteritems()):
45 # Help Windows to find the executable in new PATH, do it only when
49 sys.exit(subprocess.call([exe] + sys.argv[2:], env=new))
/external/icu/icu4c/source/tools/tzcode/
H A Dialloc.c11 icatalloc(char *const old, const char *const new) argument
16 newsize = (new == NULL) ? 0 : strlen(new);
23 if (new != NULL)
24 (void) strcpy(result + oldsize, new);
/external/ipsec-tools/src/racoon/
H A Dthrottle.c124 * 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;
H A Dvmbuf.c124 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/std/localization/locales/locale/locale.cons/
H A Dchar_pointer.pass.cpp19 #include <new>
26 void* operator new(std::size_t s) throw(std::bad_alloc)
H A Dlocale_char_pointer_cat.pass.cpp19 #include <new>
26 void* operator new(std::size_t s) throw(std::bad_alloc)
H A Dlocale_locale_cat.pass.cpp19 #include <new>
26 void* operator new(std::size_t s) throw(std::bad_alloc)
H A Dlocale_string_cat.pass.cpp18 #include <new>
25 void* operator new(std::size_t s) throw(std::bad_alloc)

Completed in 1655 milliseconds

1234567891011>>