Home
last modified time | relevance | path

Searched refs:logic_error (Results 1 – 19 of 19) sorted by relevance

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/
H A Dthrow-by-value-catch-by-reference.cpp4 class logic_error { class
6 logic_error(const char *message) {} in logic_error() function in logic_error
9 typedef logic_error *logic_ptr;
22 logic_error CreateException() { return logic_error("created"); } in CreateException()
25 throw new logic_error("by pointer"); in testThrowFunc()
27 logic_ptr tmp = new logic_error("by pointer"); in testThrowFunc()
31 throw logic_error("by value"); in testThrowFunc()
33 throw logic_error(literal); in testThrowFunc()
40 logic_error lvalue("lvalue"); in testThrowFunc()
51 void throwReferenceFunc(logic_error &ref) { throw ref; } in throwReferenceFunc()
[all …]
/llvm-project/libcxx/src/support/runtime/
H A Dstdexcept_default.ipp21 logic_error::logic_error(const string& msg) : __imp_(msg.c_str()) {}
23 logic_error::logic_error(const char* msg) : __imp_(msg) {}
25 logic_error::logic_error(const logic_error& le) noexcept : __imp_(le.__imp_) {}
27 logic_error& logic_error::operator=(const logic_error& le) noexcept {
45 const char* logic_error::what() const noexcept { return __imp_.c_str(); }
49 logic_error::~logic_error() noexcept {}
H A Dstdexcept_vcruntime.ipp14 logic_error::logic_error(std::string const& s) : exception(s.c_str()) {}
/llvm-project/libcxx/include/
H A Dstdexcept19 class logic_error;
79 class _LIBCPP_EXPORTED_FROM_ABI logic_error : public exception {
86 explicit logic_error(const string&);
87 explicit logic_error(const char*);
89 logic_error(const logic_error&) _NOEXCEPT;
90 logic_error& operator=(const logic_error&) _NOEXCEPT;
92 ~logic_error() _NOEXCEPT override;
98 explicit logic_error(cons
[all...]
H A Dfuture47 class future_error : public logic_error {
494 class _LIBCPP_EXPORTED_FROM_ABI future_error : public logic_error {
/llvm-project/libcxx/test/std/diagnostics/std.exceptions/logic.error/
H A Dlogic_error.pass.cpp21 static_assert((std::is_base_of<std::exception, std::logic_error>::value), in main()
23 static_assert(std::is_polymorphic<std::logic_error>::value, in main()
27 std::logic_error e(msg); in main()
29 std::logic_error e2(e); in main()
36 std::logic_error e(msg); in main()
38 std::logic_error e2(e); in main()
/llvm-project/libcxxabi/src/
H A Dstdlib_stdexcept.cpp22 logic_error::~logic_error() noexcept {} in ~logic_error()
25 logic_error::what() const noexcept in what()
/llvm-project/third-party/benchmark/test/
H A Ddiagnostics_test.cc22 throw std::logic_error(""); in TestHandler()
34 } catch (std::logic_error const&) { in try_invalid_pause_resume()
39 } catch (std::logic_error const&) { in try_invalid_pause_resume()
/llvm-project/libcxx/src/
H A Doptional.cpp26 class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS bad_optional_access : public std::logic_error {
28 bad_optional_access() : std::logic_error("Bad optional Access") {} in bad_optional_access()
H A Dfuture.cpp56 future_error::future_error(error_code __ec) : logic_error(__ec.message()), __ec_(__ec) {} in future_error()
/llvm-project/bolt/test/X86/
H A Dinterprocedural-ref-entry-point.s11 # throw std::logic_error("");
14 # throw std::logic_error("");
/llvm-project/llvm/test/Object/
H A Dcoff-archive.test8 CHECKIDX: ??0logic_error@std@@QAE@PBD@Z in Debug\mymath.obj
10 CHECKIDX: ??1logic_error@std@@UAE@XZ in Debug\mymath.obj
25 CHECKIDX: ??_R1A@?0A@EA@logic_error@std@@8 in Debug\mymath.obj
164 CHECKIDX: 00000000 T ??0logic_error@std@@QAE@PBD@Z
166 CHECKIDX: 00000000 T ??1logic_error@std@@UAE@XZ
179 CHECKIDX: 00000000 R ??_R1A@?0A@EA@logic_error@std@@8
/llvm-project/libcxx/test/std/thread/futures/futures.future_error/
H A Dtypes.compile.pass.cpp18 static_assert(std::is_convertible<std::future_error*, std::logic_error*>::value, "");
/llvm-project/libcxx/modules/std/
H A Dstdexcept.inc14 using std::logic_error;
/llvm-project/libcxx/test/std/diagnostics/std.exceptions/domain.error/
H A Ddomain_error.pass.cpp21 static_assert((std::is_base_of<std::logic_error, std::domain_error>::value), in main()
/llvm-project/libcxx/test/std/diagnostics/std.exceptions/length.error/
H A Dlength_error.pass.cpp21 static_assert((std::is_base_of<std::logic_error, std::length_error>::value), in main()
/llvm-project/libcxx/test/std/diagnostics/std.exceptions/invalid.argument/
H A Dinvalid_argument.pass.cpp21 static_assert((std::is_base_of<std::logic_error, std::invalid_argument>::value), in main()
/llvm-project/libcxx/test/std/diagnostics/std.exceptions/out.of.range/
H A Dout_of_range.pass.cpp21 static_assert((std::is_base_of<std::logic_error, std::out_of_range>::value), in main()
/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DStdSymbolMap.inc2082 SYMBOL(logic_error, std::, <stdexcept>)