003 File Manager
Current Path:
/usr/src/contrib/llvm-project/libcxx/src/support/runtime
usr
/
src
/
contrib
/
llvm-project
/
libcxx
/
src
/
support
/
runtime
/
📁
..
📄
exception_fallback.ipp
(3.02 KB)
📄
exception_glibcxx.ipp
(692 B)
📄
exception_libcxxabi.ipp
(756 B)
📄
exception_libcxxrt.ipp
(639 B)
📄
exception_msvc.ipp
(3.13 KB)
📄
exception_pointer_cxxabi.ipp
(1.79 KB)
📄
exception_pointer_glibcxx.ipp
(2.19 KB)
📄
exception_pointer_msvc.ipp
(2.73 KB)
📄
exception_pointer_unimplemented.ipp
(1.79 KB)
📄
new_handler_fallback.ipp
(701 B)
📄
stdexcept_default.ipp
(2.01 KB)
📄
stdexcept_vcruntime.ipp
(654 B)
Editing: exception_pointer_glibcxx.ipp
// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // libsupc++ does not implement the dependent EH ABI and the functionality // it uses to implement std::exception_ptr (which it declares as an alias of // std::__exception_ptr::exception_ptr) is not directly exported to clients. So // we have little choice but to hijack std::__exception_ptr::exception_ptr's // (which fortunately has the same layout as our std::exception_ptr) copy // constructor, assignment operator and destructor (which are part of its // stable ABI), and its rethrow_exception(std::__exception_ptr::exception_ptr) // function. namespace std { namespace __exception_ptr { struct exception_ptr { void* __ptr_; exception_ptr(const exception_ptr&) _NOEXCEPT; exception_ptr& operator=(const exception_ptr&) _NOEXCEPT; ~exception_ptr() _NOEXCEPT; }; } _LIBCPP_NORETURN void rethrow_exception(__exception_ptr::exception_ptr); exception_ptr::~exception_ptr() _NOEXCEPT { reinterpret_cast<__exception_ptr::exception_ptr*>(this)->~exception_ptr(); } exception_ptr::exception_ptr(const exception_ptr& other) _NOEXCEPT : __ptr_(other.__ptr_) { new (reinterpret_cast<void*>(this)) __exception_ptr::exception_ptr( reinterpret_cast<const __exception_ptr::exception_ptr&>(other)); } exception_ptr& exception_ptr::operator=(const exception_ptr& other) _NOEXCEPT { *reinterpret_cast<__exception_ptr::exception_ptr*>(this) = reinterpret_cast<const __exception_ptr::exception_ptr&>(other); return *this; } nested_exception::nested_exception() _NOEXCEPT : __ptr_(current_exception()) { } _LIBCPP_NORETURN void nested_exception::rethrow_nested() const { if (__ptr_ == nullptr) terminate(); rethrow_exception(__ptr_); } _LIBCPP_NORETURN void rethrow_exception(exception_ptr p) { rethrow_exception(reinterpret_cast<__exception_ptr::exception_ptr&>(p)); } } // namespace std
Upload File
Create Folder