Home
last modified time | relevance | path

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

1234

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dmisc-throw-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 …]
/external/libcxx/src/
Dstdexcept.cpp28 logic_error::logic_error(const string& msg) : __imp_(msg.c_str()) in logic_error() function in std::logic_error
32 logic_error::logic_error(const char* msg) : __imp_(msg) in logic_error() function in std::logic_error
36 logic_error::logic_error(const logic_error& le) _NOEXCEPT : __imp_(le.__imp_) in logic_error() function in std::logic_error
40 logic_error&
41 logic_error::operator=(const logic_error& le) _NOEXCEPT in operator =()
49 logic_error::~logic_error() _NOEXCEPT in ~logic_error()
54 logic_error::what() const _NOEXCEPT in what()
Doptional.cpp31 : public std::logic_error
34 bad_optional_access() : std::logic_error("Bad optional Access") {} in bad_optional_access()
/external/llvm-project/libcxx/src/support/runtime/
Dstdexcept_default.ipp22 logic_error::logic_error(const string& msg) : __imp_(msg.c_str()) {}
24 logic_error::logic_error(const char* msg) : __imp_(msg) {}
26 logic_error::logic_error(const logic_error& le) _NOEXCEPT : __imp_(le.__imp_) {}
28 logic_error& logic_error::operator=(const logic_error& le) _NOEXCEPT {
47 const char* logic_error::what() const _NOEXCEPT { return __imp_.c_str(); }
51 logic_error::~logic_error() _NOEXCEPT {}
Dstdexcept_vcruntime.ipp14 logic_error::logic_error(std::string const& s) : exception(s.c_str()) {}
/external/libcxx/include/
Dstdexcept20 class logic_error;
77 class _LIBCPP_EXCEPTION_ABI logic_error
83 explicit logic_error(const string&);
84 explicit logic_error(const char*);
86 logic_error(const logic_error&) _NOEXCEPT;
87 logic_error& operator=(const logic_error&) _NOEXCEPT;
89 virtual ~logic_error() _NOEXCEPT;
112 : public logic_error
115 _LIBCPP_INLINE_VISIBILITY explicit domain_error(const string& __s) : logic_error(__s) {}
116 _LIBCPP_INLINE_VISIBILITY explicit domain_error(const char* __s) : logic_error(__s) {}
[all …]
/external/llvm-project/libcxx/include/
Dstdexcept19 class logic_error;
76 class _LIBCPP_EXCEPTION_ABI logic_error
83 explicit logic_error(const string&);
84 explicit logic_error(const char*);
86 logic_error(const logic_error&) _NOEXCEPT;
87 logic_error& operator=(const logic_error&) _NOEXCEPT;
89 virtual ~logic_error() _NOEXCEPT;
94 explicit logic_error(const _VSTD::string&); // Symbol uses versioned std::string
95 _LIBCPP_INLINE_VISIBILITY explicit logic_error(const char* __s) : exception(__s) {}
123 : public logic_error
[all …]
/external/llvm-project/libcxx/test/std/diagnostics/std.exceptions/logic.error/
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()
/external/libcxx/test/std/diagnostics/std.exceptions/logic.error/
Dlogic_error.pass.cpp20 static_assert((std::is_base_of<std::exception, std::logic_error>::value), in main()
22 static_assert(std::is_polymorphic<std::logic_error>::value, in main()
26 std::logic_error e(msg); in main()
28 std::logic_error e2(e); in main()
35 std::logic_error e(msg); in main()
37 std::logic_error e2(e); in main()
/external/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/
Dlinq_last.hpp13 if (c.empty()) { throw std::logic_error("last() out of bounds"); } in linq_last_()
29 if (c.empty()) { throw std::logic_error("last() out of bounds"); } in linq_last_()
43 if (c.empty()) { throw std::logic_error("last() out of bounds"); } in linq_last_()
64 if (c.empty()) { throw std::logic_error("last() out of bounds"); } in linq_last_or_default_()
Dlinq.hpp341 if (cur.empty()) { throw std::logic_error("index out of bounds"); } in element_at()
364 if (cur.empty()) { throw std::logic_error("index out of bounds"); } in first()
374 if (cur.empty()) { throw std::logic_error("index out of bounds"); } in first()
438 throw std::logic_error("max performed on empty range"); in max()
453 throw std::logic_error("max performed on empty range"); in min()
/external/llvm-project/libcxxabi/src/
Dstdlib_stdexcept.cpp22 logic_error::~logic_error() _NOEXCEPT {} in ~logic_error()
25 logic_error::what() const _NOEXCEPT in what()
/external/libcxxabi/src/
Dstdlib_stdexcept.cpp23 logic_error::~logic_error() _NOEXCEPT {} in ~logic_error()
26 logic_error::what() const _NOEXCEPT in what()
/external/Reactive-Extensions/RxCpp/Ix/CPP/unittest/
Dtestbench.hpp31 } catch (logic_error& e) { in run()
62 …{ auto e = (expr); if (!e) { throw std::logic_error(__FILE__ "(" Q(__LINE__) "): TASSERT("#expr")"…
81 { auto e = (expr); if (!e) { throw std::logic_error(TEST_WHERE "VERIFY("#expr")"); } }
85 throw std::logic_error( \
/external/llvm-project/llvm/utils/benchmark/test/
Ddiagnostics_test.cc22 throw std::logic_error(""); in TestHandler()
33 } catch (std::logic_error const&) { in try_invalid_pause_resume()
38 } catch (std::logic_error const&) { in try_invalid_pause_resume()
/external/llvm-project/libcxx/utils/google-benchmark/test/
Ddiagnostics_test.cc22 throw std::logic_error(""); in TestHandler()
33 } catch (std::logic_error const&) { in try_invalid_pause_resume()
38 } catch (std::logic_error const&) { in try_invalid_pause_resume()
/external/google-benchmark/test/
Ddiagnostics_test.cc22 throw std::logic_error(""); in TestHandler()
33 } catch (std::logic_error const&) { in try_invalid_pause_resume()
38 } catch (std::logic_error const&) { in try_invalid_pause_resume()
/external/libcxx/utils/google-benchmark/test/
Ddiagnostics_test.cc22 throw std::logic_error(""); in TestHandler()
33 } catch (std::logic_error const&) { in try_invalid_pause_resume()
38 } catch (std::logic_error const&) { in try_invalid_pause_resume()
/external/llvm-project/libcxx/src/
Doptional.cpp31 : public std::logic_error
34 bad_optional_access() : std::logic_error("Bad optional Access") {} in bad_optional_access()
/external/fmtlib/test/
Dtest-assert.h15 class assertion_failure : public std::logic_error {
17 explicit assertion_failure(const char* message) : std::logic_error(message) {} in assertion_failure()
/external/libabigail/src/
Dabg-viz-common.cc75 throw std::logic_error("abigail::units_to_string units not recognized"); in units_to_string()
100 throw std::logic_error("abigail::color_to_string color not recognized"); in color_to_string()
119 throw std::logic_error("abigail::anchor_to_string anchor not recognized"); in anchor_to_string()
/external/tensorflow/tensorflow/compiler/xla/python/
Dpytree.cc198 throw std::logic_error("Too few elements for TreeDef node."); in Unflatten()
235 throw std::logic_error("PyTreeDef traversal did not yield a singleton."); in Unflatten()
243 throw std::logic_error("Node arity mismatch."); in MakeNode()
247 throw std::logic_error("MakeNode not implemented for leaves."); in MakeNode()
290 throw std::logic_error("Unreachable code."); in MakeNode()
312 throw std::logic_error("Leaf count mismatch."); in FlattenUpTo()
463 throw std::logic_error("Too few elements for custom type."); in Walk()
478 throw std::logic_error("PyTreeDef traversal did not yield a singleton."); in Walk()
563 throw std::logic_error("children() walked off start of array"); in Children()
571 throw std::logic_error("pos != 0 at end of PyTreeDef::Children"); in Children()
[all …]
/external/mesa3d/src/gallium/frontends/clover/util/
Dlazy.hpp100 class undefined_error : std::logic_error {
102 undefined_error() : std::logic_error("") { in undefined_error()
/external/python/pybind11/tests/
Dtest_exceptions.cpp58 class MyException5 : public std::logic_error {
60 explicit MyException5(const std::string &what) : std::logic_error(what) {} in MyException5()
144 …m.def("throws_logic_error", []() { throw std::logic_error("this error should fall through to the s… in TEST_SUBMODULE()
/external/abseil-cpp/absl/base/internal/
Dthrow_delegate.cc41 Throw(std::logic_error(what_arg)); in ThrowStdLogicError()
44 Throw(std::logic_error(what_arg)); in ThrowStdLogicError()

1234