Searched refs:nothrow (Results 1 - 25 of 43) sorted by relevance

12

/external/valgrind/main/memcheck/tests/
H A Dnew_nothrow.cpp3 // At one point, Valgrind wasn't overriding these 'nothrow' versions; since
8 int * a = new (std::nothrow) int;
9 int * b = new (std::nothrow) int[5];
/external/valgrind/main/massif/tests/
H A Dnew-cpp.cpp20 s* p2 = new (std::nothrow) s;
22 char* c2 = new (std::nothrow) char[2000];
H A Doverloaded-new.cpp50 s* p2 = new (std::nothrow) s;
52 char* c2 = new (std::nothrow) char[2000];
/external/clang/test/Analysis/
H A DNewDelete-custom.cpp14 void *operator new(std::size_t size, std::nothrow_t& nothrow) throw() { return allocator(size); } argument
60 void *p = operator new(0, std::nothrow);
67 int *p = new(std::nothrow) int;
H A DNewDelete-checker-test.cpp42 //----- Standard nothrow placement operators
44 void *p = operator new(0, std::nothrow);
51 int *p = new(std::nothrow) int;
168 int *p = new(std::nothrow) int[1];
/external/clang/test/CodeGen/
H A Dms-declspecs.c20 void __declspec(nothrow) t22();
H A Dattributes.c44 void t2() __attribute__((nothrow));
56 void t7() __attribute__((noreturn, nothrow));
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Ddebugallocation_test.cc84 // new can be matched only by delete and delete(nothrow)
85 // new[] can be matched only by delete[] and delete[](nothrow)
86 // new(nothrow) can be matched only by delete and delete(nothrow)
87 // new(nothrow)[] can be matched only by delete[] and delete[](nothrow)
105 ::operator delete(y, std::nothrow);
115 ::operator delete[](y, std::nothrow);
118 // Allocate with new(nothrow).
120 int* x = new(std::nothrow) in
[all...]
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Ddebugallocation_test.cc84 // new can be matched only by delete and delete(nothrow)
85 // new[] can be matched only by delete[] and delete[](nothrow)
86 // new(nothrow) can be matched only by delete and delete(nothrow)
87 // new(nothrow)[] can be matched only by delete[] and delete[](nothrow)
105 ::operator delete(y, std::nothrow);
115 ::operator delete[](y, std::nothrow);
118 // Allocate with new(nothrow).
120 int* x = new(std::nothrow) in
[all...]
/external/clang/test/Sema/
H A Dattr-args.c10 inline __attribute__((nothrow(a))) void *f7(); // expected-error {{'nothrow' attribute takes no arguments}}
/external/chromium_org/courgette/third_party/
H A Dpaged_array.h13 // For std::nothrow:
47 pages_ = new(std::nothrow) T*[pages_needed];
52 T* block = new(std::nothrow) T[kPageSize];
/external/clang/test/CodeGenCXX/
H A Dnew.cpp22 std::nothrow_t nothrow;
301 (void) new (nothrow) S[3];
325 (void) operator new[](3, nothrow);
/external/chromium/base/allocator/
H A Dgeneric_allocators.cc13 inline void* generic_cpp_alloc(size_t size, bool nothrow) { argument
19 if (!call_new_handler(nothrow))
H A Dallocator_shim.cc71 inline bool call_new_handler(bool nothrow) { argument
92 if (nothrow)
102 if (!nothrow)
/external/chromium_org/base/allocator/
H A Dgeneric_allocators.cc13 inline void* generic_cpp_alloc(size_t size, bool nothrow) { argument
19 if (!call_new_handler(nothrow))
H A Dallocator_shim.cc78 inline bool call_new_handler(bool nothrow) { argument
100 if (nothrow)
110 if (!nothrow)
/external/stlport/stlport/stl/
H A D_new.h67 # define nothrow nothrow_t() macro
98 using _STLP_VENDOR_EXCEPT_STD::nothrow;
/external/chromium_org/courgette/
H A Dassembly_program.cc162 return Emit(new(std::nothrow) PeRelocsInstruction());
166 return Emit(new(std::nothrow) ElfRelocsInstruction());
170 return Emit(new(std::nothrow) ElfARMRelocsInstruction());
174 return Emit(new(std::nothrow) OriginInstruction(rva));
183 return Emit(new(std::nothrow) BytesInstruction(values, len));
187 return Emit(new(std::nothrow) InstructionWithLabel(REL32, label));
192 return Emit(new(std::nothrow) InstructionWithLabelARM(REL32ARM, op, label,
197 return Emit(new(std::nothrow) InstructionWithLabel(ABS32, label));
252 slot = new(std::nothrow) Label(rva);
390 scoped_ptr<EncodedProgram> encoded(new(std::nothrow) EncodedProgra
[all...]
H A Dmemory_allocator.h220 mem = new(std::nothrow) uint8[bytes];
226 TempMapping* mapping = new(std::nothrow) TempMapping();
295 new(std::nothrow) uint8[count * sizeof(T)]);
/external/chromium_org/base/
H A Dsecurity_unittest.cc26 using std::nothrow;
138 HideValueFromCompiler(new (nothrow) VeryLargeStruct));
146 HideValueFromCompiler(new (nothrow) char[kTooBigAllocSize]));
178 // IOS doesn't honor nothrow, so disable the test there.
192 scoped_ptr<char[][kArraySize]> array_pointer(new (nothrow)
200 scoped_ptr<char[][kArraySize2]> array_pointer(new (nothrow)
/external/webrtc/src/system_wrappers/source/
H A Dsort.cc20 #include <new> // nothrow new
249 ptrSortKey = new(std::nothrow) SortKey<KeyType>[numOfElements];
271 WebRtc_UWord8* ptrDataSorted = new(std::nothrow) WebRtc_UWord8
439 SortKey* ptrSortKey = new(std::nothrow) SortKey[numOfElements];
493 WebRtc_UWord8* ptrDataSorted = new(std::nothrow) WebRtc_UWord8
/external/marisa-trie/lib/marisa/
H A Dtrie.cc38 temp.trie_.reset(new (std::nothrow) Trie);
79 temp.trie_.reset(new (std::nothrow) Trie);
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
H A Dtrie.cc38 temp.trie_.reset(new (std::nothrow) Trie);
79 temp.trie_.reset(new (std::nothrow) Trie);
/external/clang/test/Analysis/Inputs/
H A Dsystem-header-simulator-cxx.h75 extern const nothrow_t nothrow;
/external/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/
H A Dsema.cpp4 #define P(e) static_assert(noexcept(e), "expected nothrow")
23 void nothrowattr() __attribute__((nothrow));

Completed in 473 milliseconds

12