| /llvm-project-15.0.7/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 {}; 77 throw std::exception(); // Ok in allowed_throws() 78 } catch (std::exception &e) { // Ok in allowed_throws() 80 throw std::exception(); in allowed_throws() 135 class generic_exception : std::exception {}; 146 THROW_EXCEPTION(std::exception); // Ok in generic_exceptions() [all …]
|
| /llvm-project-15.0.7/polly/lib/External/isl/cpp/ |
| H A D | cpp.h.top | 71 class exception : public std::exception { 78 exception() {} 110 exception::exception(const char *what_arg, const char *msg, const char *file, 121 friend exception; 127 friend exception; 133 friend exception; 139 friend exception; 145 friend exception; 151 friend exception; 157 friend exception; [all …]
|
| /llvm-project-15.0.7/llvm/test/Analysis/ScalarEvolution/ |
| H A D | pointer-sign-bits.ll | 23 end: ; preds = %"no exception block35" 53 "no exception block13": ; preds = %verifyNullCont12 56 verifyNullExit14: ; preds = %"no exception block13" 59 verifyNullCont15: ; preds = %"no exception block13" 65 "no exception block16": ; preds = %verifyNullCont15 68 verifyNullExit17: ; preds = %"no exception block16" 77 "no exception block19": ; preds = %verifyNullCont18 113 "no exception block35": ; preds = %verifyNullCont34 128 "no exception block64": ; preds = %verifyNullCont63 140 "no exception block67": ; preds = %verifyNullCont66 [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
| 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. 33 int *p = new int[1000]; // no warning: exception can be handled outside [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | throw-keyword-missing.cpp | 23 struct exception { struct 24 exception(); 25 exception(const exception &other); 26 virtual ~exception(); 29 struct runtime_error : public exception { 51 std::exception(); in stdExceptionNotTrownTest() 60 throw std::exception(); in stdExceptionThrownTest() 162 typedef std::exception ERROR_BASE;
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A D | ExceptionHandling.rst | 12 exception handling in LLVM. It describes the format that LLVM exception 48 exception handling. 60 In contrast to DWARF exception handling, which encodes exception regions and 83 exception handling (e.g. C++), the exception frame contains a reference to an 84 exception table describing how to process the exception. If the language does 85 not support exception handling (e.g. C), or if the exception needs to be 96 which receives the context of the exception, an *exception structure* 97 containing the exception object type and value, and a reference to the exception 128 #. A request is made to allocate exception space for an exception structure. 132 #. A call is made to the runtime to raise the exception, passing the exception [all …]
|
| /llvm-project-15.0.7/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… 3 ; RUN: llc -filetype=obj -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling %p/Inputs… 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 -relocati… 12 ; RUN: llc -filetype=obj -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling -relocati… 13 ; RUN: llc -filetype=obj -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling -relocati…
|
| /llvm-project-15.0.7/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 This enforces `rule 15.1 <http://www.codingstandard.com/section/15-1-throwing-an-exception/>`_ 22 class mathematical_error : public std::exception {}; 28 throw std::exception();
|
| /llvm-project-15.0.7/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 21 …ss in NSError ** instead of throwing exception to indicate Objective-C errors [google-objc-avoid-t… 26 …ss in NSError ** instead of throwing exception to indicate Objective-C errors [google-objc-avoid-t… 28 …ss in NSError ** instead of throwing exception to indicate Objective-C errors [google-objc-avoid-t…
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Generic/ |
| H A D | 2007-05-03-EHTypeInfo.ll | 3 %struct.exception = type { i8, i8, i32, i8*, i8*, i32, i8* } 4 @program_error = external global %struct.exception ; <%struct.exception*> [#uses=1] 8 …tail call i32 @llvm.eh.typeid.for( i8* getelementptr (%struct.exception, %struct.exception* @progr…
|
| /llvm-project-15.0.7/clang/test/CodeGenObjCXX/ |
| H A D | personality.mm | 6 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 7 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 8 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 10 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 11 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 12 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 14 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 15 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 16 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… 20 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -exception-model… [all …]
|
| /llvm-project-15.0.7/libcxxabi/test/ |
| H A D | exception_object_alignment.2.pass.cpp | 19 struct exception { struct 20 exception() : x(0) { } in exception() argument 21 virtual ~exception() { } in ~exception() argument 25 struct foo : exception { }; argument
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | 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 100 class _LIBCPP_EXCEPTION_ABI exception 104 _LIBCPP_INLINE_VISIBILITY exception(const exception&) _NOEXCEPT = default; 106 virtual ~exception() _NOEXCEPT; [all …]
|
| /llvm-project-15.0.7/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: 38 expr=check_expr, exception=exception))
|
| /llvm-project-15.0.7/libcxx/src/support/runtime/ |
| H A D | exception_fallback.ipp | 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 66 // handler should not throw exception 67 fprintf(stderr, "terminate_handler unexpectedly threw an exception\n"); 83 exception::~exception() noexcept 87 const char* exception::what() const noexcept 89 return "std::exception";
|
| H A D | exception_msvc.ipp | 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 72 // handler should not throw exception 73 fprintf(stderr, "terminate_handler unexpectedly threw an exception\n"); 114 exception::~exception() noexcept 118 const char* exception::what() const noexcept 120 return "std::exception";
|
| /llvm-project-15.0.7/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 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 escapes from bar() 113 fooCleanup: // Executed if an exception escapes from foo() 120 implemented by the C++ support library. It returns the current exception 140 itself. For this discussion, assume that the exception object contains *at [all …]
|
| /llvm-project-15.0.7/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-15.0.7/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:
|
| H A D | illegal-catchpad.ll | 5 ; in a similar section. Dealing with exception handling inside of an outlined 17 ; CHECK: exception: 29 invoke void @llvm.donothing() to label %normal unwind label %exception 30 exception: 48 ; CHECK: exception: 60 invoke void @llvm.donothing() to label %normal unwind label %exception 61 exception:
|
| H A D | illegal-invoke.ll | 18 ; CHECK: exception: 30 invoke void @llvm.donothing() to label %normal unwind label %exception 31 exception: 46 ; CHECK: exception: 58 invoke void @llvm.donothing() to label %normal unwind label %exception 59 exception:
|
| /llvm-project-15.0.7/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… 12 ; Single catch (...) does not need an exception table. 30 %2 = call i8* @llvm.wasm.get.exception(token %1) 94 ; CHECK-NEXT: # On exception at call site 0 97 ; CHECK-NEXT: # On exception at call site 1 100 ; CHECK-NEXT: # On exception at call site 2 141 %2 = call i8* @llvm.wasm.get.exception(token %1) 163 %10 = call i8* @llvm.wasm.get.exception(token %9) 185 %18 = call i8* @llvm.wasm.get.exception(token %17) [all …]
|
| H A D | null-streamer.ll | 1 ; RUN: llc < %s -O0 -filetype=null -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling 2 …%s -O0 -filetype=asm -asm-verbose=false -wasm-enable-eh -exception-model=wasm -mattr=+exception-ha…
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | weak-external.cpp | 37 class _LIBCPP_EXCEPTION_ABI exception class 40 _LIBCPP_INLINE_VISIBILITY exception() _NOEXCEPT {} in exception() function in std::exception 41 virtual ~exception() _NOEXCEPT; 46 : public exception
|