Home
last modified time | relevance | path

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

1234

/external/libcxx/test/libcxx/language.support/support.dynamic/
Dnew_faligned_allocation.sh.cpp53 void *ptr = ::operator new(1, std::align_val_t(128), std::nothrow); in main()
56 ::operator delete(ptr, std::align_val_t(128), std::nothrow); in main()
65 void *ptr = ::operator new[](1, std::align_val_t(128), std::nothrow); in main()
68 ::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/valgrind/memcheck/tests/
Dnew_nothrow.cpp8 int * a = new (std::nothrow) int; in main()
9 int * b = new (std::nothrow) int[5]; in main()
/external/valgrind/massif/tests/
Dnew-cpp.cpp20 s* p2 = new (std::nothrow) s; in main()
22 char* c2 = new (std::nothrow) char[2000]; in main()
Doverloaded-new.cpp50 s* p2 = new (std::nothrow) s; in main()
52 char* c2 = new (std::nothrow) char[2000]; in main()
/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.array/
Dnew_array_nothrow.pass.cpp45 void*volatile vp = operator new [] (std::numeric_limits<std::size_t>::max(), std::nothrow); in main()
55 A* ap = new(std::nothrow) A[3]; in main()
Dnew_align_val_t_nothrow.pass.cpp51 std::nothrow); in test_max_alloc()
72 A* ap = new(std::nothrow) A[3]; in main()
Dnew_align_val_t_nothrow_replace.pass.cpp66 A* ap = new (std::nothrow) A[2]; in main()
75 B* bp = new (std::nothrow) B[2]; in main()
/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.cpp51 std::nothrow); in test_max_alloc()
72 A* ap = new(std::nothrow) A; in main()
Dnew_align_val_t_nothrow_replace.pass.cpp67 A* ap = new (std::nothrow) A; in main()
76 B* bp = new (std::nothrow) B; in main()
/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/libchrome/base/
Dsecurity_unittest.cc28 using std::nothrow;
113 new (nothrow) char[kDynamicArraySize2][kArraySize]); in TEST()
123 new (nothrow) char[kDynamicArraySize][kArraySize2]); in TEST()
/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.cc62 dst = new (std::nothrow) char[size]; // NOLINT in StrCpy()
76 dst->reset(new (std::nothrow) PrimaryChromaticity(src->x(), src->y())); in CopyChromaticity()
220 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in Init()
235 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in AddAdditionalData()
402 new (std::nothrow) CuePoint*[new_capacity]; // NOLINT in AddCue()
542 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in SetEncryptionID()
681 new (std::nothrow) ContentEncoding*[count]; // NOLINT in AddContentEncoding()
686 new (std::nothrow) ContentEncoding(); // NOLINT in AddContentEncoding()
895 new (std::nothrow) uint8_t[static_cast<size_t>(length)]; // NOLINT in SetCodecPrivate()
910 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/libvpx/libvpx/test/
Didct_test.cc33 input = new (std::nothrow) Buffer<int16_t>(4, 4, 0); in SetUp()
35 predict = new (std::nothrow) Buffer<uint8_t>(4, 4, 3); in SetUp()
37 output = new (std::nothrow) Buffer<uint8_t>(4, 4, 3); in SetUp()
/external/jemalloc/include/jemalloc/
Djemalloc_macros.h55 # define JEMALLOC_NOTHROW __declspec(nothrow)
87 # define JEMALLOC_NOTHROW JEMALLOC_ATTR(nothrow)
/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.

1234