[Lldb-commits] [lldb] f2ec73c - [lldb] Move deprecation message from implementation to header (NFC)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 15 11:14:23 PDT 2023
Author: Jonas Devlieghere
Date: 2023-08-15T10:41:11-07:00
New Revision: f2ec73c746504978cda96914a03952f65a29dd67
URL: https://github.com/llvm/llvm-project/commit/f2ec73c746504978cda96914a03952f65a29dd67
DIFF: https://github.com/llvm/llvm-project/commit/f2ec73c746504978cda96914a03952f65a29dd67.diff
LOG: [lldb] Move deprecation message from implementation to header (NFC)
Address Alex's post commit review feedback from D158000.
Added:
Modified:
lldb/include/lldb/API/SBDebugger.h
lldb/source/API/SBDebugger.cpp
Removed:
################################################################################
diff --git a/lldb/include/lldb/API/SBDebugger.h b/lldb/include/lldb/API/SBDebugger.h
index 27962060370d29..29cf2c16fad4bd 100644
--- a/lldb/include/lldb/API/SBDebugger.h
+++ b/lldb/include/lldb/API/SBDebugger.h
@@ -380,8 +380,10 @@ class LLDB_API SBDebugger {
void SetREPLLanguage(lldb::LanguageType repl_lang);
+ LLDB_DEPRECATED("SBDebugger::GetCloseInputOnEOF() is deprecated.")
bool GetCloseInputOnEOF() const;
+ LLDB_DEPRECATED("SBDebugger::SetCloseInputOnEOF() is deprecated.")
void SetCloseInputOnEOF(bool b);
SBTypeCategory GetCategory(const char *category_name);
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 33346c1e304564..5328e079564f32 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -1535,14 +1535,12 @@ bool SBDebugger::SetCurrentPlatformSDKRoot(const char *sysroot) {
return false;
}
-LLDB_DEPRECATED("SBDebugger::GetCloseInputOnEOF() is deprecated.")
bool SBDebugger::GetCloseInputOnEOF() const {
LLDB_INSTRUMENT_VA(this);
return false;
}
-LLDB_DEPRECATED("SBDebugger::SetCloseInputOnEOF() is deprecated.")
void SBDebugger::SetCloseInputOnEOF(bool b) {
LLDB_INSTRUMENT_VA(this, b);
}
More information about the lldb-commits
mailing list