Home
last modified time | relevance | path

Searched refs:nothrow (Results 1 – 25 of 99) sorted by relevance

1234

/external/libcxx/test/libcxx/language.support/support.dynamic/
Dnew_faligned_allocation.sh.cpp68 void *ptr = ::operator new(1, std::align_val_t(128), std::nothrow); in main()
71 ::operator delete(ptr, std::align_val_t(128), std::nothrow); in main()
80 void *ptr = ::operator new[](1, std::align_val_t(128), std::nothrow); in main()
83 ::operator delete[](ptr, std::align_val_t(128), std::nothrow); in main()
/external/clang/test/Analysis/
DNewDelete-custom.cpp14 void *operator new(std::size_t size, std::nothrow_t& nothrow) throw() { return allocator(size); } in operator new() argument
60 void *p = operator new(0, std::nothrow); in testOpNewNoThrow()
67 int *p = new(std::nothrow) int; in testNewExprNoThrow()
DNewDelete-checker-test.cpp45 void *p = operator new(0, std::nothrow); in testGlobalNoThrowPlacementOpNewBeforeOverload()
52 int *p = new(std::nothrow) int; in testGlobalNoThrowPlacementExprNewBeforeOverload()
188 int *p = new(std::nothrow) int[1]; in testAllocDeallocNames()
/external/libusb/libusb/os/
Dhaiku_pollfs.cpp73 WatchedEntry *child = new(std::nothrow) WatchedEntry(fMessenger, ref); in WatchedEntry()
93 fDevice = new(std::nothrow) USBDevice(path.Path()); in WatchedEntry()
201 WatchedEntry *child = new(std::nothrow) WatchedEntry(fMessenger, ref); in EntryCreated()
259 fMessenger = new(std::nothrow) BMessenger(this); in RosterLooper()
268 fRoot = new(std::nothrow) WatchedEntry(fMessenger, &ref); in RosterLooper()
349 fLooper = new(std::nothrow) RosterLooper(this); in Start()
/external/libchrome/base/
Dsecurity_unittest.cc29 using std::nothrow;
97 new (nothrow) char[kDynamicArraySize2][kArraySize]); in TEST()
109 new (nothrow) char[kDynamicArraySize][kArraySize2]); in TEST()
/external/clang/test/CodeGenCXX/
Dnew.cpp25 std::nothrow_t nothrow; variable
334 (void) new (nothrow) S[3]; in f()
357 (void) operator new[](3, nothrow); in g()
Dvla-consruct.cpp8 __attribute__((nothrow)) { printf("%d: S()\n", ++N); } in S()
9 ~S() __attribute__((nothrow)) { printf("%d: ~S()\n", N--); } in ~S()
/external/clang/test/CodeGen/
Daddress-sanitizer-and-array-cookie.cpp7 std::nothrow_t nothrow; variable
29 return new (std::nothrow) C[10]; in CallNewNoThrow()
Dattributes.c44 void t2() __attribute__((nothrow));
56 void t7() __attribute__((noreturn, nothrow));
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/
Dnew_nothrow.pass.cpp45 void* vp = operator new (std::numeric_limits<std::size_t>::max(), std::nothrow); in main()
55 A* ap = new(std::nothrow) A; in main()
Dnew_align_val_t_nothrow.pass.cpp76 std::nothrow); in test_max_alloc()
97 A* ap = new(std::nothrow) A; in main()
Dnew_align_val_t_nothrow_replace.pass.cpp93 A* ap = new (std::nothrow) A; in main()
102 B* bp = new (std::nothrow) B; in main()
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/
Dnew_array_nothrow.pass.cpp45 void* vp = operator new [] (std::numeric_limits<std::size_t>::max(), std::nothrow); in main()
56 A* ap = new(std::nothrow) A[3]; in main()
Dnew_align_val_t_nothrow.pass.cpp76 std::nothrow); in test_max_alloc()
97 A* ap = new(std::nothrow) A[3]; in main()
Dnew_align_val_t_nothrow_replace.pass.cpp91 A* ap = new (std::nothrow) A[2]; in main()
100 B* bp = new (std::nothrow) B[2]; in main()
/external/clang/test/SemaCXX/
Dvla-consruct.cpp12 S() __attribute__ ((nothrow)) { printf("%d: S()\n", ++N); } in S()
13 ~S() __attribute__ ((nothrow)) { printf("%d: ~S()\n", N--); } in ~S()
/external/libvpx/libvpx/third_party/libwebm/mkvmuxer/
Dmkvmuxer.cc64 dst = new (std::nothrow) char[size]; // NOLINT in StrCpy()
78 dst->reset(new (std::nothrow) PrimaryChromaticity(src->x(), src->y())); in CopyChromaticity()
222 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in Init()
237 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in AddAdditionalData()
404 new (std::nothrow) CuePoint*[new_capacity]; // NOLINT in AddCue()
544 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in SetEncryptionID()
683 new (std::nothrow) ContentEncoding*[count]; // NOLINT in AddContentEncoding()
688 new (std::nothrow) ContentEncoding(); // NOLINT in AddContentEncoding()
905 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in SetCodecPrivate()
920 codec_id_ = new (std::nothrow) char[length]; // NOLINT in set_codec_id()
[all …]
/external/libaom/libaom/third_party/libwebm/mkvmuxer/
Dmkvmuxer.cc64 dst = new (std::nothrow) char[size]; // NOLINT in StrCpy()
78 dst->reset(new (std::nothrow) PrimaryChromaticity(src->x(), src->y())); in CopyChromaticity()
222 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in Init()
237 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in AddAdditionalData()
404 new (std::nothrow) CuePoint*[new_capacity]; // NOLINT in AddCue()
544 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in SetEncryptionID()
683 new (std::nothrow) ContentEncoding*[count]; // NOLINT in AddContentEncoding()
688 new (std::nothrow) ContentEncoding(); // NOLINT in AddContentEncoding()
905 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in SetCodecPrivate()
920 codec_id_ = new (std::nothrow) char[length]; // NOLINT in set_codec_id()
[all …]
/external/compiler-rt/test/asan/TestCases/Linux/
Dsized_delete_test.cc41 operator delete(x, std::nothrow); in Del12NoThrow()
49 operator delete[](x, std::nothrow); in Del12ArNoThrow()
/external/llvm/docs/HistoricalNotes/
D2001-09-18-OptimizeExceptions.txt10 throws an exception, unless it is defined as 'nothrow'. This means
15 2. Declaring a function nothrow causes catch blocks to be added to every
16 call that isnot provably nothrow. This makes them very slow.
/external/swiftshader/third_party/LLVM/docs/HistoricalNotes/
D2001-09-18-OptimizeExceptions.txt10 throws an exception, unless it is defined as 'nothrow'. This means
15 2. Declaring a function nothrow causes catch blocks to be added to every
16 call that isnot provably nothrow. This makes them very slow.
/external/swiftshader/third_party/llvm-7.0/llvm/docs/HistoricalNotes/
D2001-09-18-OptimizeExceptions.txt10 throws an exception, unless it is defined as 'nothrow'. This means
15 2. Declaring a function nothrow causes catch blocks to be added to every
16 call that isnot provably nothrow. This makes them very slow.
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetLibraryInfo.def34 /// void *new(unsigned int, nothrow);
42 /// void *new(unsigned long long, nothrow);
50 /// void operator delete(void*, nothrow);
62 /// void operator delete(void*, nothrow);
74 /// void *new[](unsigned int, nothrow);
82 /// void *new[](unsigned long long, nothrow);
90 /// void operator delete[](void*, nothrow);
102 /// void operator delete[](void*, nothrow);
119 /// void operator delete[](void*, nothrow);
125 /// void operator delete[](void*, align_val_t, nothrow)
[all …]
/external/jemalloc/include/jemalloc/
Djemalloc_macros.h55 # define JEMALLOC_NOTHROW __declspec(nothrow)
87 # define JEMALLOC_NOTHROW JEMALLOC_ATTR(nothrow)
/external/jemalloc_new/src/
Djemalloc_cpp.cpp44 handleOOM(std::size_t size, bool nothrow) { in handleOOM() argument
69 if (ptr == nullptr && !nothrow) in handleOOM()

1234