[Lldb-commits] [lldb] b4a8e87 - Add noexcept qualifier to placate g++
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 18 15:04:38 PDT 2024
Author: Adrian Prantl
Date: 2024-09-18T15:03:41-07:00
New Revision: b4a8e877ee3002a8cfd613f7950afcbe1d98821c
URL: https://github.com/llvm/llvm-project/commit/b4a8e877ee3002a8cfd613f7950afcbe1d98821c
DIFF: https://github.com/llvm/llvm-project/commit/b4a8e877ee3002a8cfd613f7950afcbe1d98821c.diff
LOG: Add noexcept qualifier to placate g++
Added:
Modified:
lldb/source/Utility/Status.cpp
Removed:
################################################################################
diff --git a/lldb/source/Utility/Status.cpp b/lldb/source/Utility/Status.cpp
index faa8d3a83c7ed1..f557cb540b5655 100644
--- a/lldb/source/Utility/Status.cpp
+++ b/lldb/source/Utility/Status.cpp
@@ -48,7 +48,7 @@ char ExpressionError::ID;
namespace {
/// A std::error_code category for eErrorTypeGeneric.
class LLDBGenericCategory : public std::error_category {
- const char *name() const override { return "LLDBGenericCategory"; }
+ const char *name() const noexcept override { return "LLDBGenericCategory"; }
std::string message(int __ev) const override { return "generic LLDB error"; };
};
LLDBGenericCategory &lldb_generic_category() {
@@ -58,7 +58,9 @@ LLDBGenericCategory &lldb_generic_category() {
/// A std::error_code category for eErrorTypeExpression.
class ExpressionCategory : public std::error_category {
- const char *name() const override { return "LLDBExpressionCategory"; }
+ const char *name() const noexcept override {
+ return "LLDBExpressionCategory";
+ }
std::string message(int __ev) const override {
return ExpressionResultAsCString(
static_cast<lldb::ExpressionResults>(__ev));
More information about the lldb-commits
mailing list