/llvm-project/libcxx/include/__exception/ |
H A D | exception.h | 42 class exception { // base of all library exceptions 44 exception() _NOEXCEPT : __data_() {} 46 explicit exception(char const* __message) _NOEXCEPT : __data_() { 51 exception(exception const&) _NOEXCEPT {} 53 exception& operator=(exception const&) _NOEXCEPT { return *this; } 55 virtual ~exception() _NOEXCEPT {} 63 class bad_exception : public exception { 65 bad_exception() _NOEXCEPT : exception("bad exception") {} 72 class _LIBCPP_EXPORTED_FROM_ABI exception { 74 _LIBCPP_HIDE_FROM_ABI exception() _NOEXCEPT {} [all …]
|
/llvm-project/polly/lib/External/isl/cpp/ |
H A D | cpp.h.top | 82 class exception : public std::exception { 86 inline exception(const char *what_arg, const char *msg, 89 exception() {} 90 exception(const char *what_arg) { 103 * will be included in the exception thrown from inside the bindings. 106 /* Wrapper for throwing an exception with the given message. 114 /* Create an exception of a type described by "what_arg", with 121 exception::exception(const char *what_arg, const char *msg, const char *file, 131 class exception_abort : public exception { 132 friend exception; [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp/ |
H A D | exception-baseclass.cpp | 4 class exception {}; class 5 class invalid_argument : public exception {}; 8 class derived_exception : public std::exception {}; 16 class bad_inheritance : private std::exception {}; 17 class no_good_inheritance : protected std::exception {}; 18 class really_creative : public non_derived_exception, private std::exception {}; 77 throw std::exception(); // Ok in allowed_throws() 78 } catch (std::exception &e) { // Ok in allowed_throws() 80 throw std::exception(); in allowed_throws() 96 } catch (std::exception &e) { // Can be caught as std::exception, even with multiple inheritance in allowed_throws() [all …]
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
H A D | empty-catch.rst | 11 // Some code that can throw an exception 12 } catch(const std::exception&) { 17 that are thrown during program execution. When an exception is thrown, the 19 exception. 22 exception but do nothing with it. This means that the exception is not handled 26 * *Hidden Bugs*: If an exception is caught and ignored, it can lead to hidden 45 This means either fixing the underlying issue that caused the exception or 46 propagating the exception up the call stack to a higher-level handler. 47 If an exception is not important, it should still be logged or reported in 50 If the exception is something that can be handled locally, then it should be [all …]
|
H A D | unhandled-exception-at-new.rst | 1 .. title:: clang-tidy - bugprone-unhandled-exception-at-new 3 bugprone-unhandled-exception-at-new 6 Finds calls to ``new`` with missing exception handler for ``std::bad_alloc``. 10 used. The check verifies that the exception is handled in the function 13 If a nonthrowing version is used or the exception is allowed to propagate out 16 The exception handler is checked if it catches a ``std::bad_alloc`` or 17 ``std::exception`` exception type, or all exceptions (catch-all). 19 ``noexcept`` or may throw an exception of type ``std::bad_alloc`` (or one 20 derived from it). Other exception class types are not taken into account. 25 int *p = new int[1000]; // warning: missing exception handler for allocation failure at 'new' [all …]
|
/llvm-project/llvm/test/Analysis/ScalarEvolution/ |
H A D | pointer-sign-bits.ll | 23 end: ; preds = %"no exception block35" 48 br i1 %arg, label %"no exception block13", label %verifyNullCont12.end_crit_edge 53 "no exception block13": ; preds = %verifyNullCont12 56 verifyNullExit14: ; preds = %"no exception block13" 59 verifyNullCont15: ; preds = %"no exception block13" 60 br i1 %arg, label %"no exception block16", label %verifyNullCont15.end_crit_edge 65 "no exception block16": ; preds = %verifyNullCont15 68 verifyNullExit17: ; preds = %"no exception block16" 71 verifyNullCont18: ; preds = %"no exception block16" 72 br i1 %arg, label %"no exception block1 [all...] |
/llvm-project/libcxxabi/test/ |
H A D | exception_object_alignment.2.pass.cpp | 19 struct exception { struct 20 exception() : x(0) { } in exception() argument 21 exception(const exception&) = default; 22 exception& operator=(const exception&) = default; 23 virtual ~exception() { } in ~exception() argument 27 struct foo : exception { }; argument
|
/llvm-project/llvm/docs/ |
H A D | ExceptionHandling.rst | 12 exception handling in LLVM. It describes the format that LLVM exception 15 provides specific examples of what exception handling information is used for in 23 exception handling should not interfere with the main flow of an application's 28 providing outlying data in the form of exception tables without inlining 29 speculative exception handling code in the flow of an application's main 33 A more complete description of the Itanium ABI exception handling runtime 36 exception frame format can be found at `Exception Frames 39 <http://dwarfstd.org/Dwarf4Std.php>`_. A description for the C++ exception 46 Setjmp/Longjmp (SJLJ) based exception handlin [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/google/ |
H A D | objc-avoid-throwing-exception.m | 1 // RUN: %check_clang_tidy %s google-objc-avoid-throwing-exception %t -- -- -I %S/Inputs/ 22 …ss in NSError ** instead of throwing exception to indicate Objective-C errors [google-objc-avoid-t… 33 …ss in NSError ** instead of throwing exception to indicate Objective-C errors [google-objc-avoid-t… 35 …ss in NSError ** instead of throwing exception to indicate Objective-C errors [google-objc-avoid-t… 44 …ss in NSError ** instead of throwing exception to indicate Objective-C errors [google-objc-avoid-t… 47 …ss in NSError ** instead of throwing exception to indicate Objective-C errors [google-objc-avoid-t…
|
/llvm-project/libcxx/include/ |
H A D | exception | 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 14 exception synopsis 19 class exception 22 exception() noexcept; 23 exception(const exception&) noexcept; 24 exception& operator=(const exception&) noexcept; 25 virtual ~exception() noexcept; 30 : public exception [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | throw-keyword-missing.cpp | 22 // std::exception and std::runtime_error declaration. 23 struct exception { struct 24 exception(); 25 exception(const exception &other); 26 virtual ~exception(); 29 struct runtime_error : public exception { 38 // Class name contains the substring "exception", in certain cases using this class should emit a warning. 50 // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: suspicious exception object created but not thrown; did you mean 'throw {{.*}}'? [bugprone-throw-keyword-missing] in stdExceptionNotTrownTest() 51 std::exception(); in stdExceptionNotTrownTest() [all...] |
/llvm-project/clang/test/CodeGenObjCXX/ |
H A D | personality.mm | 2 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=dwarf -fobjc-except… 3 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=seh -fobjc-exceptio… 4 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=sjlj -fobjc-excepti… 6 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=dwarf -fobjc-except… 7 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=seh -fobjc-exceptio… 8 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=sjlj -fobjc-excepti… 10 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=dwarf -fobjc-except… 11 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=seh -fobjc-exceptio… 12 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=sjlj -fobjc-excepti… 14 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=dwarf -fobjc-except… [all …]
|
/llvm-project/lld/test/wasm/ |
H A D | tag-section.ll | 2 ; RUN: llc -filetype=obj -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling %p/Inputs/tag-section1.ll -o %t1.o 3 ; RUN: llc -filetype=obj -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling %p/Inputs/tag-section2.ll -o %t2.o 4 ; RUN: llc -filetype=obj -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling %s -o %t.o 11 ; RUN: llc -filetype=obj -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling -relocation-model=pic %p/Inputs/tag-section1.ll -o %t1.o 12 ; RUN: llc -filetype=obj -wasm-enable-eh -exception-model=wasm -mattr=+exception [all...] |
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/hicpp/ |
H A D | exception-baseclass.rst | 1 .. title:: clang-tidy - hicpp-exception-baseclass 3 hicpp-exception-baseclass 7 ``std::exception``. 9 ….1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard-exception-handling>`_ 22 class mathematical_error : public std::exception {}; 28 throw std::exception();
|
/llvm-project/llvm/test/CodeGen/WebAssembly/ |
H A D | eh-lsda.ll | 1 …le-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-ha… 2 …le-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-ha… 3 …le-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-ha… 4 …le-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-ha… 5 …le-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-ha… 6 …le-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-ha… 12 ; Single catch (...) does not need an exception table. 30 %2 = call ptr @llvm.wasm.get.exception(token %1) 94 ; CHECK-NEXT: # On exception at call site 0 97 ; CHECK-NEXT: # On exception at call site 1 [all …]
|
H A D | eh-option-errors.ll | 12 ; RUN: not --crash llc < %s -wasm-enable-eh -exception-model=dwarf 2>&1 | FileCheck %s --check-prefix=EH_MODEL_DWARF 13 ; EH_MODEL_DWARF: LLVM ERROR: -exception-model should be either 'none' or 'wasm' 15 ; RUN: not --crash llc < %s -enable-emscripten-cxx-exceptions -exception-model=wasm 2>&1 | FileCheck %s --check-prefix=EM_EH_W_MODEL_WASM 16 ; EM_EH_W_MODEL_WASM: LLVM ERROR: -exception-model=wasm not allowed with -enable-emscripten-cxx-exceptions 18 ; RUN: not --crash llc < %s -exception-model=wasm 2>&1 | FileCheck %s --check-prefix=MODEL_WASM_WO_WASM_EH_SJLJ 19 ; MODEL_WASM_WO_WASM_EH_SJLJ: LLVM ERROR: -exception-model=wasm only allowed with at least one of -wasm-enable-eh or -wasm-enable-sjlj
|
/llvm-project/llvm/docs/HistoricalNotes/ |
H A D | 2001-05-18-ExceptionHandling.txt | 20 an exception is thrown by func (or if we are in a try block). 57 used to implement the C++ exception model: 70 // execution continues after the try block: the exception is consumed 86 call foo() with fooCleanup // An exception in foo is propagated to fooCleanup 87 call bar() with barCleanup // An exception in bar is propagated to barCleanup 93 call baz() with bazCleanup // An exception in baz is propagated to bazCleanup 102 what we want for zero cost (when unused) exception handling. Especially on 103 platforms with many registers (ie, the IA64) setjmp/longjmp style exception 109 TryCleanup: // Executed if an exception escapes the try block 111 barCleanup: // Executed if an exception escape [all...] |
/llvm-project/lldb/test/API/macosx/arm-corefile-regctx/ |
H A D | TestArmMachoCorefileRegctx.py | 43 exception = frame.FindRegister("exception") 44 self.assertTrue(exception.IsValid()) 45 self.assertEqual(exception.GetValueAsUnsigned(), 0x00003F5C) 66 exception = frame.FindRegister("far") 67 self.assertTrue(exception.IsValid()) 68 self.assertEqual(exception.GetValueAsUnsigned(), 0x0000000100003F5C)
|
/llvm-project/llvm/test/TableGen/ |
H A D | JSON-check.py | 27 exception = None variable 31 exception = traceback.format_exc().splitlines()[-1] variable 33 if exception is not None: 37 file=testfile, line=lineno, expr=check_expr, exception=exception
|
/llvm-project/libcxx/src/support/runtime/ |
H A D | exception_fallback.ipp | 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 45 // handler should not throw exception 46 __libcpp_verbose_abort("terminate_handler unexpectedly threw an exception\n"); 58 exception::~exception() noexcept {} 60 const char* exception::what() const noexcept { return "std::exception"; }
|
H A D | exception_msvc.ipp | 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 53 // handler should not throw exception 54 __libcpp_verbose_abort("terminate_handler unexpectedly threw an exception\n"); 76 exception::~exception() noexcept {} 78 const char* exception::what() const noexcept { return "std::exception"; }
|
/llvm-project/llvm/test/Transforms/IROutliner/ |
H A D | illegal-cleanup.ll | 5 ; in a similar section. Dealing with exception handling inside of an outlined 17 ; CHECK: exception: 27 invoke void @llvm.donothing() to label %normal unwind label %exception 28 exception: 44 ; CHECK: exception: 54 invoke void @llvm.donothing() to label %normal unwind label %exception 55 exception:
|
H A D | illegal-landingpad.ll | 5 ; in a similar section. Dealing with exception handling inside of an outlined 17 ; CHECK: exception: 28 invoke void @llvm.donothing() to label %normal unwind label %exception 29 exception: 45 ; CHECK: exception: 56 invoke void @llvm.donothing() to label %normal unwind label %exception 57 exception:
|
/llvm-project/clang/test/Driver/ |
H A D | windows-exceptions.cpp | 12 MSVC-NOT: -exception-model=dwarf 13 MSVC-NOT: -exception-model=seh 16 MINGW-DWARF: -exception-model=dwarf 18 MINGW-SEH: -exception-model=seh
|
/llvm-project/llvm/test/CodeGen/AArch64/ |
H A D | stack-tagging-ex-2.ll | 37 %exception = tail call ptr @__cxa_allocate_exception(i64 4) #4 38 store i32 42, ptr %exception, align 16, !tbaa !2 39 tail call void @__cxa_throw(ptr %exception, ptr @_ZTIi, ptr null) #5 72 %exception = call ptr @__cxa_allocate_exception(i64 4) #4 73 store i32 15532, ptr %exception, align 16, !tbaa !2 74 call void @__cxa_throw(ptr %exception, ptr @_ZTIi, ptr null) #5 106 %exception.i6 = call ptr @__cxa_allocate_exception(i64 4) #4 107 store i32 42, ptr %exception.i6, align 16, !tbaa !2 108 invoke void @__cxa_throw(ptr %exception.i6, ptr @_ZTIi, ptr null) #5 127 %exception [all...] |