Home
last modified time | relevance | path

Searched refs:runtime_error (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project/libcxx/src/support/runtime/
H A Dstdexcept_default.ipp32 runtime_error::runtime_error(const string& msg) : __imp_(msg.c_str()) {}
34 runtime_error::runtime_error(const char* msg) : __imp_(msg) {}
36 runtime_error::runtime_error(const runtime_error& re) noexcept : __imp_(re.__imp_) {}
38 runtime_error& runtime_error::operator=(const runtime_error& re) noexcept {
47 const char* runtime_error::what() const noexcept { return __imp_.c_str(); }
55 runtime_error::~runtime_error() noexcept {}
H A Dstdexcept_vcruntime.ipp15 runtime_error::runtime_error(std::string const& s) : exception(s.c_str()) {}
/llvm-project/clang/test/CodeGenCXX/
H A Dweak-external.cpp45 class _LIBCPP_EXCEPTION_ABI runtime_error class
51 explicit runtime_error(const string&);
52 explicit runtime_error(const char*);
54 runtime_error(const runtime_error&) _NOEXCEPT;
55 runtime_error& operator=(const runtime_error&) _NOEXCEPT;
57 virtual ~runtime_error() _NOEXCEPT;
65 throw(std::runtime_error("string")); in dummysymbol()
/llvm-project/bolt/test/runtime/X86/
H A Drethrow.cpp4 void erringFunc() { throw std::runtime_error("Hello"); } in erringFunc()
8 void libCallB() { throw std::runtime_error("World"); } in libCallB()
13 } catch (std::runtime_error &E) { in handleEventA()
22 } catch (std::runtime_error &E) { in handleEventB()
40 class TerminateException : public std::runtime_error {
42 TerminateException() : std::runtime_error("Time to stop!") {} in TerminateException()
62 } catch (std::runtime_error &E) { in runEventLoop()
H A Dlp-fragment-start.s56 .Ltmp3: # throw std::runtime_error
162 # throw std::runtime_error("failed successfully");
163 # } catch (const std::runtime_error &e) {
/llvm-project/libcxx/include/
H A Dstdexcept24 class runtime_error;
103 class _LIBCPP_EXPORTED_FROM_ABI runtime_error : public exception {
110 explicit runtime_error(const string&);
111 explicit runtime_error(const char*);
113 runtime_error(const runtime_error&) _NOEXCEPT;
114 runtime_error& operator=(const runtime_error&) _NOEXCEPT;
116 ~runtime_error() _NOEXCEPT override;
122 explicit runtime_error(cons
[all...]
/llvm-project/libcxx/test/std/diagnostics/std.exceptions/runtime.error/
H A Druntime_error.pass.cpp21 static_assert((std::is_base_of<std::exception, std::runtime_error>::value), in main()
23 static_assert(std::is_polymorphic<std::runtime_error>::value, in main()
27 std::runtime_error e(msg); in main()
29 std::runtime_error e2(e); in main()
36 std::runtime_error e(msg); in main()
38 std::runtime_error e2(e); in main()
/llvm-project/libcxx/src/
H A Dsystem_error.cpp341 : runtime_error(make_error_str(ec, what_arg)), __ec_(ec) {}
344 : runtime_error(make_error_str(ec, what_arg)), __ec_(ec) {}
346 system_error::system_error(error_code ec) : runtime_error(make_error_str(ec)), __ec_(ec) {}
349 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
352 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
355 : runtime_error(make_error_str(error_code(ev, ecat))), __ec_(error_code(ev, ecat)) {}
/llvm-project/clang/test/SemaCXX/
H A DPR9460.cpp11 struct runtime_error{ struct
12 runtime_error(
15 runtime_error(0);
H A DPR9461.cpp29 struct runtime_error{runtime_error(string);}; struct
31 struct system_error:runtime_error{ // expected-note {{to match}}
/llvm-project/libcxxabi/src/
H A Dstdlib_stdexcept.cpp30 runtime_error::~runtime_error() noexcept {} in ~runtime_error()
33 runtime_error::what() const noexcept in what()
/llvm-project/libcxx/include/__format/
H A Dformat_error.h27 class _LIBCPP_EXPORTED_FROM_ABI format_error : public runtime_error {
29 _LIBCPP_HIDE_FROM_ABI explicit format_error(const string& __s) : runtime_error(__s) {} in format_error()
30 _LIBCPP_HIDE_FROM_ABI explicit format_error(const char* __s) : runtime_error(__s) {} in format_error()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dthrow-keyword-missing.cpp22 // std::exception and std::runtime_error declaration.
29 struct runtime_error : public exception { struct
30 explicit runtime_error(const std::string &what_arg);
55 std::runtime_error("Unexpected argument"); in stdExceptionNotTrownTest()
63 throw std::runtime_error("Unexpected argument"); in stdExceptionThrownTest()
/llvm-project/libcxx/include/__chrono/
H A Dexception.h39 class nonexistent_local_time : public runtime_error {
43 : runtime_error{__create_message(__time, __info)} { in nonexistent_local_time()
83 class ambiguous_local_time : public runtime_error {
87 : runtime_error{__create_message(__time, __info)} { in ambiguous_local_time()
/llvm-project/libcxx/test/libcxx/time/time.zone/time.zone.timezone/time.zone.members/
H A Dget_info.sys_time.pass.cpp74 std::runtime_error, in test_exception()
75 [&]([[maybe_unused]] const std::runtime_error& e) { in test_exception()
98 std::runtime_error, in zone_without_until_entry()
99 [&]([[maybe_unused]] const std::runtime_error& e) { in zone_without_until_entry()
/llvm-project/mlir/lib/Bindings/Python/
H A DIRModule.cpp78 throw std::runtime_error((llvm::Twine("Attribute builder for '") + in registerAttributeBuilder()
92 throw std::runtime_error("Type caster is already registered with caster: " + in registerValueCaster()
102 throw std::runtime_error("Value caster is already registered: " + in registerDialectImpl()
112 throw std::runtime_error((llvm::Twine("Dialect namespace '") + in registerOperationImpl()
124 throw std::runtime_error((llvm::Twine("Operation '") + operationName + in lookupAttributeBuilder()
/llvm-project/libcxx/test/std/localization/locales/locale/locale.cons/
H A Dchar_pointer.pass.cpp87 } catch (std::runtime_error&) { in main()
94 } catch (std::runtime_error&) { in main()
101 } catch (std::runtime_error&) { in main()
/llvm-project/offload/test/offloading/
H A Dbug50022.cpp23 throw std::runtime_error("wrong result!"); in main()
31 throw std::runtime_error("wrong result!"); in main()
/llvm-project/libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.access/
H A Dlocate_zone.pass.cpp41 std::runtime_error, in test_exception()
42 [&]([[maybe_unused]] const std::runtime_error& e) { in test_exception()
/llvm-project/libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.tzdb/
H A Dlocate_zone.pass.cpp43 std::runtime_error, in test_exception()
44 [&]([[maybe_unused]] const std::runtime_error& e) { in test_exception()
/llvm-project/libcxx/test/libcxx/time/time.zone/time.zone.db/
H A Dversion.pass.cpp54 std::runtime_error, in test_exception()
55 [&]([[maybe_unused]] const std::runtime_error& e) { in test_exception()
H A Dlinks.pass.cpp59 std::runtime_error, in test_exception()
60 [&]([[maybe_unused]] const std::runtime_error& e) { in test_exception()
H A Dleap_seconds.pass.cpp58 std::runtime_error, in test_exception()
59 [&]([[maybe_unused]] const std::runtime_error& e) { in test_exception()
/llvm-project/libcxx/test/libcxx/time/time.zone/time.zone.db/time.zone.db.tzdb/
H A Dlocate_zone.pass.cpp74 std::runtime_error, in main()
75 [&]([[maybe_unused]] const std::runtime_error& e) { in main()
/llvm-project/compiler-rt/test/hwasan/TestCases/
H A Dtry-catch.cpp29 throw std::runtime_error("hello"); in h()
62 } catch (const std::runtime_error &e) { in f()

123