aboutsummaryrefslogtreecommitdiff
path: root/libbase/include/core/error
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-11-02 11:05:18 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-11-02 11:05:18 +0800
commit3cba709128fc153533e029226b3f09b1ae7ac18e (patch)
tree6f2d752feb8ecc49bd35fb90146e3e1d4ae4bd6f /libbase/include/core/error
parent47c262e7ea143311a9fea4b33c0ad24a0bcb83f5 (diff)
downloadrcc-project-3cba709128fc153533e029226b3f09b1ae7ac18e.tar.gz
rcc-project-3cba709128fc153533e029226b3f09b1ae7ac18e.tar.xz
[libbase] Rename public namespace and unreachable symbolsHEADmaster
Diffstat (limited to 'libbase/include/core/error')
-rw-r--r--libbase/include/core/error/Errno.h4
-rw-r--r--libbase/include/core/error/ErrorHandling.h18
2 files changed, 11 insertions, 11 deletions
diff --git a/libbase/include/core/error/Errno.h b/libbase/include/core/error/Errno.h
index 01d4ff8..9f0c3b9 100644
--- a/libbase/include/core/error/Errno.h
+++ b/libbase/include/core/error/Errno.h
@@ -29,7 +29,7 @@
#include <cerrno>
#include <string>
-namespace rcc
+namespace libbase
{
namespace sys
{
@@ -59,6 +59,6 @@ RetryAfterSignal (const FailT &Fail, const Fun &F, const Args &...As)
}
} // namespace sys
-} // namespace rcc
+} // namespace libbase
#endif // LIBBASE_SUPPORT_ERRNO_H
diff --git a/libbase/include/core/error/ErrorHandling.h b/libbase/include/core/error/ErrorHandling.h
index b27104c..485d2d1 100644
--- a/libbase/include/core/error/ErrorHandling.h
+++ b/libbase/include/core/error/ErrorHandling.h
@@ -37,7 +37,7 @@
#include "core/compiler/Compiler.h"
-namespace rcc
+namespace libbase
{
class StringRef;
class Twine;
@@ -177,9 +177,9 @@ report_bad_alloc_error (const char *Reason, bool GenCrashDiag = true);
/// Use the llvm_unreachable macro (that adds location info), instead of
/// calling this function directly.
[[noreturn]] LIBBASE_ABI void
-rcc_unreachable_internal (const char *msg = nullptr, const char *file = nullptr,
- unsigned line = 0);
-} // namespace rcc
+libbase_unreachable_internal (const char *msg = nullptr,
+ const char *file = nullptr, unsigned line = 0);
+} // namespace libbase
/// Marks that the current location is not supposed to be reachable.
/// In !NDEBUG builds, prints the message and location info to stderr.
@@ -199,14 +199,14 @@ rcc_unreachable_internal (const char *msg = nullptr, const char *file = nullptr,
/// diagnostics for unreachable code paths, and allows compilers to omit
/// unnecessary code.
#ifndef NDEBUG
-#define rcc_unreachable(msg) \
- ::rcc::rcc_unreachable_internal (msg, __FILE__, __LINE__)
+#define libbase_unreachable(msg) \
+ ::libbase::libbase_unreachable_internal (msg, __FILE__, __LINE__)
#elif !defined(LIBBASE_BUILTIN_UNREACHABLE)
-#define rcc_unreachable(msg) ::rcc::rcc_unreachable_internal ()
+#define libbase_unreachable(msg) ::libbase::libbase_unreachable_internal ()
#elif LIBBASE_UNREACHABLE_OPTIMIZE
-#define rcc_unreachable(msg) LIBBASE_BUILTIN_UNREACHABLE
+#define libbase_unreachable(msg) LIBBASE_BUILTIN_UNREACHABLE
#else
-#define rcc_unreachable(msg) \
+#define libbase_unreachable(msg) \
do \
{ \
LIBBASE_BUILTIN_TRAP; \