Replace NOTREACHED() with DCHECK(false) in generated files (see #3500)

Restores the old behavior of assertion in Debug build only.
This commit is contained in:
Marshall Greenblatt
2023-05-08 18:15:02 +03:00
parent dc9e64308a
commit c18545a7f5
329 changed files with 694 additions and 694 deletions

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8192d1e40fa6b42502907094351c3deeefb4db08$
// $hash=fe9776e1f16f92742ad5215b0f990223f8647c59$
//
#include "libcef_dll/ctocpp/test/test_server_connection_ctocpp.h"
@@ -146,7 +146,7 @@ cef_test_server_connection_t* CefCToCppRefCounted<
CefTestServerConnection,
cef_test_server_connection_t>::UnwrapDerived(CefWrapperType type,
CefTestServerConnection* c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=c28a94226a89e94a765d19e7d59bfa8a50efe295$
// $hash=50c7d4b9b04e640de46aa816dc44b8eeb718cc79$
//
#include "libcef_dll/ctocpp/test/test_server_ctocpp.h"
@@ -92,7 +92,7 @@ template <>
cef_test_server_t*
CefCToCppRefCounted<CefTestServerCToCpp, CefTestServer, cef_test_server_t>::
UnwrapDerived(CefWrapperType type, CefTestServer* c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=150f0433fb541e23edad54baa1af9f870f4c7a84$
// $hash=43130e567ff34056d282a006b0023c5892b83afa$
//
#include "libcef_dll/ctocpp/test/test_server_handler_ctocpp.h"
@@ -76,7 +76,7 @@ cef_test_server_handler_t* CefCToCppRefCounted<
CefTestServerHandler,
cef_test_server_handler_t>::UnwrapDerived(CefWrapperType type,
CefTestServerHandler* c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=af7948baa27d1ea9ad277f294014affb8bf3ba49$
// $hash=e45ac9d949f5bc30b13e69cf655120250e0ccdc4$
//
#include "libcef_dll/ctocpp/test/translator_test_ctocpp.h"
@@ -1652,7 +1652,7 @@ cef_translator_test_t* CefCToCppRefCounted<
CefTranslatorTest,
cef_translator_test_t>::UnwrapDerived(CefWrapperType type,
CefTranslatorTest* c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=5f0147c0fd3225a764d914be4cfbe05f3145f59a$
// $hash=83723bcac7d4a071aeece77b37ddd6b459b931fc$
//
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.h"
@@ -72,7 +72,7 @@ CefCToCppRefCounted<CefTranslatorTestRefPtrClientChildCToCpp,
CefTranslatorTestRefPtrClientChild,
cef_translator_test_ref_ptr_client_child_t>::
UnwrapDerived(CefWrapperType type, CefTranslatorTestRefPtrClientChild* c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8466641105f3c19fce94947eff086aeb1ccc526b$
// $hash=ce7854af973f443c580f9f026be9db6c4cff6182$
//
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.h"
@@ -56,7 +56,7 @@ CefCToCppRefCounted<CefTranslatorTestRefPtrClientCToCpp,
CefTranslatorTestRefPtrClientChildCToCpp::Unwrap(
reinterpret_cast<CefTranslatorTestRefPtrClientChild*>(c)));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=cc5546fc8b0b06121d59d367472b7d42f25f12f3$
// $hash=91e5a9096b509e43530e031ae8e46d90380e0796$
//
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.h"
@@ -162,7 +162,7 @@ CefCToCppRefCounted<CefTranslatorTestRefPtrLibraryChildChildCToCpp,
cef_translator_test_ref_ptr_library_child_child_t>::
UnwrapDerived(CefWrapperType type,
CefTranslatorTestRefPtrLibraryChildChild* c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8a2d1836475451990a27eb757fc9396fe249daf0$
// $hash=cd059e94feaa5f002332fcb6fac40fcd1cb14dca$
//
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.h"
@@ -126,7 +126,7 @@ CefCToCppRefCounted<CefTranslatorTestRefPtrLibraryChildCToCpp,
CefTranslatorTestRefPtrLibraryChildChildCToCpp::Unwrap(
reinterpret_cast<CefTranslatorTestRefPtrLibraryChildChild*>(c)));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=b921e7e7ea0d88e5d0cd2f8e7f089926c8b1f1b6$
// $hash=7540736b997ff0f093265301b1476e18933c492f$
//
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.h"
@@ -94,7 +94,7 @@ CefCToCppRefCounted<CefTranslatorTestRefPtrLibraryCToCpp,
CefTranslatorTestRefPtrLibraryChildChildCToCpp::Unwrap(
reinterpret_cast<CefTranslatorTestRefPtrLibraryChildChild*>(c)));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=cdb4ca04fa51dad19a502395e551f155d7f7670e$
// $hash=b37005aa19984166b1f103e260cb49f6becec364$
//
#include "libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.h"
@@ -66,7 +66,7 @@ CefCToCppScoped<CefTranslatorTestScopedClientChildCToCpp,
cef_translator_test_scoped_client_child_t>::
UnwrapDerivedOwn(CefWrapperType type,
CefOwnPtr<CefTranslatorTestScopedClientChild> c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}
@@ -77,7 +77,7 @@ CefCToCppScoped<CefTranslatorTestScopedClientChildCToCpp,
cef_translator_test_scoped_client_child_t>::
UnwrapDerivedRaw(CefWrapperType type,
CefRawPtr<CefTranslatorTestScopedClientChild> c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d16a979d1fd6b2e58a40bd49da0071e03c7b1b13$
// $hash=0ce373fa99a3d48d9a512355dfc4d3c26aa18f87$
//
#include "libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.h"
@@ -54,7 +54,7 @@ CefCToCppScoped<CefTranslatorTestScopedClientCToCpp,
reinterpret_cast<CefTranslatorTestScopedClientChild*>(
c.release()))));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}
@@ -71,7 +71,7 @@ CefCToCppScoped<CefTranslatorTestScopedClientCToCpp,
CefRawPtr<CefTranslatorTestScopedClientChild>(
reinterpret_cast<CefTranslatorTestScopedClientChild*>(c))));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=62c1f23411e35b3e4ec97748f4cb1c070d9ef763$
// $hash=7021be9737238bd48745b5cfbfad8c0191f847fe$
//
#include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.h"
@@ -145,7 +145,7 @@ CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
cef_translator_test_scoped_library_child_child_t>::
UnwrapDerivedOwn(CefWrapperType type,
CefOwnPtr<CefTranslatorTestScopedLibraryChildChild> c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}
@@ -156,7 +156,7 @@ CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
cef_translator_test_scoped_library_child_child_t>::
UnwrapDerivedRaw(CefWrapperType type,
CefRawPtr<CefTranslatorTestScopedLibraryChildChild> c) {
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=ba28121d699be43841a82405922a22ef280bcaad$
// $hash=7fd424327ace29415b68a9c9fb15216e33c7c142$
//
#include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.h"
@@ -116,7 +116,7 @@ CefCToCppScoped<CefTranslatorTestScopedLibraryChildCToCpp,
reinterpret_cast<CefTranslatorTestScopedLibraryChildChild*>(
c.release()))));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}
@@ -134,7 +134,7 @@ CefCToCppScoped<CefTranslatorTestScopedLibraryChildCToCpp,
reinterpret_cast<CefTranslatorTestScopedLibraryChildChild*>(
c))));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a7e1fb6e675934a1628d956cc7017cf67a405df6$
// $hash=042f660ffd41b420a394bc93cdaccf75984cf999$
//
#include "libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h"
@@ -90,7 +90,7 @@ CefCToCppScoped<CefTranslatorTestScopedLibraryCToCpp,
reinterpret_cast<CefTranslatorTestScopedLibraryChildChild*>(
c.release()))));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}
@@ -114,7 +114,7 @@ CefCToCppScoped<CefTranslatorTestScopedLibraryCToCpp,
reinterpret_cast<CefTranslatorTestScopedLibraryChildChild*>(
c))));
}
NOTREACHED() << "Unexpected class type: " << type;
DCHECK(false) << "Unexpected class type: " << type;
return nullptr;
}