| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/replace-auto-ptr/ |
| H A D | memory.h | 15 explicit auto_ptr(X *p = 0) throw() {} in throw() function 16 auto_ptr(auto_ptr &) throw() {} in throw() function 17 template <class Y> auto_ptr(auto_ptr<Y> &) throw() {} in auto_ptr() 18 auto_ptr &operator=(auto_ptr &) throw() { return *this; } in throw() function 19 template <class Y> auto_ptr &operator=(auto_ptr<Y> &) throw() { in throw() function 22 auto_ptr &operator=(auto_ptr_ref<X> r) throw() { return *this; } in throw() function 23 ~auto_ptr() throw() {} in throw() function 24 auto_ptr(auto_ptr_ref<X> r) throw() : x_(r.y_) {} in throw() function 25 template <class Y> operator auto_ptr_ref<Y>() throw() { in throw() function 30 template <class Y> operator auto_ptr<Y>() throw() { return auto_ptr<Y>(x_); } in throw() function
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/ |
| H A D | use-noexcept.rst | 9 and ``throw(<exception>[,...])`` or ``throw(...)`` with 17 void foo() throw(); 18 void bar() throw(int) {} 43 void bar() throw(int); 44 void foo() throw(); 50 void bar() throw(int); // No fix-it generated. 68 void foo() throw(int) {} 71 void foobar() throw(int); 72 void operator delete(void *ptr) throw(int); 73 void operator delete[](void *ptr) throw(int); [all …]
|
| /llvm-project-15.0.7/libcxxabi/include/ |
| H A D | cxxabi.h | 43 __cxa_allocate_exception(size_t thrown_size) throw(); 45 __cxa_free_exception(void *thrown_exception) throw(); 54 __cxa_get_exception_ptr(void *exceptionObject) throw(); 56 __cxa_begin_catch(void *exceptionObject) throw(); 60 __cxa_begin_cleanup(void *exceptionObject) throw(); 151 extern _LIBCXXABI_FUNC_VIS void *__cxa_current_primary_exception() throw(); 155 __cxa_increment_exception_refcount(void *primary_exception) throw(); 157 __cxa_decrement_exception_refcount(void *primary_exception) throw(); 160 extern _LIBCXXABI_FUNC_VIS bool __cxa_uncaught_exception() throw(); 161 extern _LIBCXXABI_FUNC_VIS unsigned int __cxa_uncaught_exceptions() throw(); [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/hicpp/ |
| H A D | exception-baseclass.rst | 6 Ensure that every value that in a ``throw`` expression is an instance of 17 // Problematic throw expressions. 18 throw int(42); 19 throw custom_exception(); 26 throw mathematical_error(); 27 throw std::runtime_error(); 28 throw std::exception();
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | try-catch.m | 48 @throw 42; // expected-error {{@throw requires an Objective-C object type ('int' invalid)}} 49 @throw agg; // expected-error {{@throw requires an Objective-C object type ('struct s' invalid)}} 50 …@throw pagg; // expected-error {{@throw requires an Objective-C object type ('struct s *' invalid)… 51 @throw; // expected-error {{@throw (rethrow) used outside of a @catch block}}
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | variant_test_helpers.h | 38 CopyThrows(CopyThrows const&) { throw 42; } in CopyThrows() 39 CopyThrows& operator=(CopyThrows const&) { throw 42; } 46 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() 48 MoveThrows& operator=(MoveThrows&&) { throw 42; } 63 throw 42; in MakeEmptyT() 66 throw 42; 69 throw 42;
|
| H A D | experimental_any_helpers.h | 91 small_type(small_type const & other) throw() { in throw() function 98 small_type(small_type& other) throw() { in throw() function 105 small_type(small_type && other) throw() { in throw() function 223 throw my_any_exception(); in throwMyAnyExpression() 244 small_throws_on_copy(small_throws_on_copy && other) throw() { in throw() function 275 large_throws_on_copy(large_throws_on_copy && other) throw() { in throw() function
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | warn-unreachable.m | 8 @throw @""; 32 @throw @""; 37 @throw @""; 49 @throw @""; // should exit outer try 51 @throw @"";
|
| /llvm-project-15.0.7/lldb/test/API/api/multithreaded/ |
| H A D | test_stop-hook.cpp.template | 34 throw Exception("invalid target"); 38 throw Exception("invalid breakpoint"); 57 throw Exception("Couldn't import %SOURCE_DIR%/some_cmd.py"); 61 throw Exception("Couldn't launch process."); 63 throw Exception("Process was not stopped"); 70 throw Exception("Couldn't add a stop hook."); 117 throw Exception("Didn't get running event"); 120 throw Exception("Event wasn't a running event."); 125 throw Exception("Didn't get a stopped event"); 128 throw Exception("Event wasn't a stop event."); [all …]
|
| H A D | listener_test.cpp.template | 34 if (!target.IsValid()) throw Exception("invalid target"); 37 if (!breakpoint.IsValid()) throw Exception("invalid breakpoint"); 49 throw Exception("Error launching process."); 71 throw e;
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopStrengthReduce/ |
| H A D | funclet.ll | 17 ; CHECK: throw: 42 br label %throw 44 throw: ; preds = %throw, %entry 78 ; CHECK: throw: 105 br label %throw 107 throw: ; preds = %throw, %entry 144 ; CHECK: throw: 171 br label %throw 173 throw: ; preds = %throw, %entry 210 ; CHECK: throw: [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
| H A D | throw-keyword-missing.rst | 1 .. title:: clang-tidy - bugprone-throw-keyword-missing 3 bugprone-throw-keyword-missing 6 Warns about a potentially missing ``throw`` keyword. If a temporary object is created, but the 8 'exception' in its name, we can assume that the programmer's intention was to throw that object.
|
| H A D | exception-escape.rst | 6 Finds functions which may throw an exception directly or indirectly, but they 7 should not. The functions which should not throw exceptions are the following: 14 * Functions marked with ``throw()`` or ``noexcept`` 32 Comma separated list containing function names which should not throw. An 35 not throw. Default value is an empty string.
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | objc-try-catch-1.m | 20 @throw; 23 @throw proc(); 30 @throw 1,2; // expected-error {{@throw requires an Objective-C object type ('int' invalid)}} \ 37 @throw (4,3,proc()); // expected-warning 2{{left operand of comma operator has no effect}}
|
| H A D | objc-cxx-keyword-identifiers.mm | 6 …int throw; // expected-error {{expected member name or ';' after declaration specifiers; 'throw' i… field 29 …eadwrite, nonatomic) int a, b, throw; // expected-error {{expected member name or ';' after declar… property 44 @dynamic throw; // expected-error {{expected identifier; 'throw' is a keyword in Objective-C++}}
|
| /llvm-project-15.0.7/clang/test/Rewriter/ |
| H A D | rewrite-modern-throw.m | 19 @catch (...) { SPLATCH(); @throw; } 31 @throw localException; 61 @throw [self ThrowThis]; 64 @throw [throw_val ThrowThis]; 88 …@throw [NSException exceptionWithName: *_imp__NSInvalidArgumentException reason: [NSString stringW…
|
| /llvm-project-15.0.7/lldb/test/API/lang/objc/exceptions/ |
| H A D | main.mm | 16 … @throw [[NSException alloc] initWithName:@"ThrownException" reason:@"SomeReason" userInfo:info]; 18 …@throw [[MyCustomException alloc] initWithName:@"ThrownException" reason:@"SomeReason" userInfo:in… 20 throw std::runtime_error("C++ exception"); 29 @throw;
|
| /llvm-project-15.0.7/libcxx/src/include/ |
| H A D | sso_allocator.h | 49 _LIBCPP_INLINE_VISIBILITY __sso_allocator() throw() : __allocated_(false) {} in __sso_allocator() 50 … _LIBCPP_INLINE_VISIBILITY __sso_allocator(const __sso_allocator&) throw() : __allocated_(false) {} in __sso_allocator() 51 …ate <class _Up> _LIBCPP_INLINE_VISIBILITY __sso_allocator(const __sso_allocator<_Up, _Np>&) throw() in __sso_allocator() 72 … _LIBCPP_INLINE_VISIBILITY size_type max_size() const throw() {return size_type(~0) / sizeof(_Tp);} in max_size()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | catchret-regmask.ll | 7 declare void @throw() uwtable 13 invoke void @throw() 35 ; CHECK: callq throw 46 invoke void @throw() 66 ; CHECK: callq throw
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cert/ |
| H A D | err61-cpp.rst | 3 :http-equiv=refresh: 5;URL=../misc/throw-by-value-catch-by-reference.html 9 `misc-throw-by-value-catch-by-reference <../misc/throw-by-value-catch-by-reference.html>`_
|
| H A D | err09-cpp.rst | 3 :http-equiv=refresh: 5;URL=../misc/throw-by-value-catch-by-reference.html 9 `misc-throw-by-value-catch-by-reference <../misc/throw-by-value-catch-by-reference.html>`_
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Hexagon/ |
| H A D | packetize-cfi-location.ll | 9 ; CHECK: call throw 14 ; call throw 26 tail call void @throw(%type.0* nonnull %p0) 58 call void @throw(%type.0* nonnull %p0) 67 declare void @throw(%type.0*) #1
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | sink-into-catchswitch.ll | 15 ; CHECK-NEXT: invoke void @throw() 21 ; CHECK-NEXT: invoke void @throw() [ "funclet"(token [[CATCH]]) ] 35 invoke void @throw() 43 invoke void @throw() [ "funclet"(token %catch) ] 57 declare void @throw()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | stdexcept | 224 throw logic_error(__msg); 235 throw domain_error(__msg); 246 throw invalid_argument(__msg); 257 throw length_error(__msg); 268 throw out_of_range(__msg); 279 throw range_error(__msg); 290 throw overflow_error(__msg); 301 throw underflow_error(__msg);
|
| /llvm-project-15.0.7/clang/test/Analysis/Inputs/ |
| H A D | system-header-simulator-cxx.h | 635 exception() throw(); 636 virtual ~exception() throw(); 637 virtual const char *what() const throw() { 644 bad_alloc() throw(); 645 bad_alloc(const bad_alloc&) throw(); 646 bad_alloc& operator=(const bad_alloc&) throw(); 647 virtual const char* what() const throw() { 1114 const std::nothrow_t &) throw(); 1115 void operator delete(void *ptr) throw(); 1127 void operator delete[](void *ptr) throw(); [all …]
|