[Lldb-commits] [lldb] 9ba308f - Remove "using llvm::None; " in *.cpp

Kazu Hirata via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 5 20:39:15 PST 2022


Author: Kazu Hirata
Date: 2022-12-05T20:39:10-08:00
New Revision: 9ba308f71c92a228120f084ba0fa740b4c61247f

URL: https://github.com/llvm/llvm-project/commit/9ba308f71c92a228120f084ba0fa740b4c61247f
DIFF: https://github.com/llvm/llvm-project/commit/9ba308f71c92a228120f084ba0fa740b4c61247f.diff

LOG: Remove "using llvm::None;" in *.cpp

These .cpp files do not use llvm::None anymore.

Since these are not header files, we can remove them pretty safely
without deprecating them first.

Added: 
    

Modified: 
    lldb/source/Core/IOHandler.cpp
    lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
    lldb/unittests/Signals/UnixSignalsTest.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp
index 597c423b01a7c..256feeaad279c 100644
--- a/lldb/source/Core/IOHandler.cpp
+++ b/lldb/source/Core/IOHandler.cpp
@@ -49,7 +49,6 @@
 
 using namespace lldb;
 using namespace lldb_private;
-using llvm::None;
 using llvm::Optional;
 using llvm::StringRef;
 

diff  --git a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
index 419e1d7c5e4f4..cf543ce48439f 100644
--- a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
+++ b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
@@ -16,7 +16,6 @@
 using namespace lldb;
 using namespace lldb_private;
 using llvm::Optional;
-using llvm::None;
 using ParsedFunction = lldb_private::CPlusPlusNameParser::ParsedFunction;
 using ParsedName = lldb_private::CPlusPlusNameParser::ParsedName;
 namespace tok = clang::tok;

diff  --git a/lldb/unittests/Signals/UnixSignalsTest.cpp b/lldb/unittests/Signals/UnixSignalsTest.cpp
index 6439e9e8ad700..e4c4634862449 100644
--- a/lldb/unittests/Signals/UnixSignalsTest.cpp
+++ b/lldb/unittests/Signals/UnixSignalsTest.cpp
@@ -14,7 +14,6 @@
 
 using namespace lldb;
 using namespace lldb_private;
-using llvm::None;
 
 class TestSignals : public UnixSignals {
 public:


        


More information about the lldb-commits mailing list