[Lldb-commits] [lldb] dfa8a15 - [lldb][NFC] Put disassembler test classes and methods in anonymous namespace
Venkata Ramanaiah Nalamothu via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 31 23:20:01 PDT 2023
Author: Venkata Ramanaiah Nalamothu
Date: 2023-09-01T11:49:54+05:30
New Revision: dfa8a15d7886f34de9d3175611a2844c921ef5b6
URL: https://github.com/llvm/llvm-project/commit/dfa8a15d7886f34de9d3175611a2844c921ef5b6
DIFF: https://github.com/llvm/llvm-project/commit/dfa8a15d7886f34de9d3175611a2844c921ef5b6.diff
LOG: [lldb][NFC] Put disassembler test classes and methods in anonymous namespace
Reviewed By: DavidSpickett, MaskRay
Differential Revision: https://reviews.llvm.org/D158971
Added:
Modified:
lldb/unittests/Disassembler/ARM/TestArm64Disassembly.cpp
lldb/unittests/Disassembler/ARM/TestArmv7Disassembly.cpp
lldb/unittests/Disassembler/RISCV/TestMCDisasmInstanceRISCV.cpp
lldb/unittests/Disassembler/x86/TestGetControlFlowKindx86.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Disassembler/ARM/TestArm64Disassembly.cpp b/lldb/unittests/Disassembler/ARM/TestArm64Disassembly.cpp
index 12975683397943..f89a918e3e54fa 100644
--- a/lldb/unittests/Disassembler/ARM/TestArm64Disassembly.cpp
+++ b/lldb/unittests/Disassembler/ARM/TestArm64Disassembly.cpp
@@ -20,6 +20,7 @@
using namespace lldb;
using namespace lldb_private;
+namespace {
class TestArm64Disassembly : public testing::Test {
public:
static void SetUpTestCase();
@@ -42,6 +43,7 @@ void TestArm64Disassembly::SetUpTestCase() {
void TestArm64Disassembly::TearDownTestCase() {
DisassemblerLLVMC::Terminate();
}
+} // namespace
TEST_F(TestArm64Disassembly, TestArmv81Instruction) {
ArchSpec arch("arm64-apple-ios");
diff --git a/lldb/unittests/Disassembler/ARM/TestArmv7Disassembly.cpp b/lldb/unittests/Disassembler/ARM/TestArmv7Disassembly.cpp
index 92b6d07f48eeca..047cba1db40821 100644
--- a/lldb/unittests/Disassembler/ARM/TestArmv7Disassembly.cpp
+++ b/lldb/unittests/Disassembler/ARM/TestArmv7Disassembly.cpp
@@ -20,6 +20,7 @@
using namespace lldb;
using namespace lldb_private;
+namespace {
class TestArmv7Disassembly : public testing::Test {
public:
static void SetUpTestCase();
@@ -42,6 +43,7 @@ void TestArmv7Disassembly::SetUpTestCase() {
void TestArmv7Disassembly::TearDownTestCase() {
DisassemblerLLVMC::Terminate();
}
+} // namespace
TEST_F(TestArmv7Disassembly, TestCortexFPDisass) {
ArchSpec arch("armv7em--");
diff --git a/lldb/unittests/Disassembler/RISCV/TestMCDisasmInstanceRISCV.cpp b/lldb/unittests/Disassembler/RISCV/TestMCDisasmInstanceRISCV.cpp
index 5534a66f6f3447..2f2585a23d7624 100644
--- a/lldb/unittests/Disassembler/RISCV/TestMCDisasmInstanceRISCV.cpp
+++ b/lldb/unittests/Disassembler/RISCV/TestMCDisasmInstanceRISCV.cpp
@@ -20,6 +20,7 @@
using namespace lldb;
using namespace lldb_private;
+namespace {
class TestMCDisasmInstanceRISCV : public testing::Test {
public:
static void SetUpTestCase();
@@ -39,6 +40,7 @@ void TestMCDisasmInstanceRISCV::SetUpTestCase() {
void TestMCDisasmInstanceRISCV::TearDownTestCase() {
DisassemblerLLVMC::Terminate();
}
+} // namespace
TEST_F(TestMCDisasmInstanceRISCV, TestRISCV32Instruction) {
ArchSpec arch("riscv32-*-linux");
diff --git a/lldb/unittests/Disassembler/x86/TestGetControlFlowKindx86.cpp b/lldb/unittests/Disassembler/x86/TestGetControlFlowKindx86.cpp
index 54433e6c8493da..56fb4bda875430 100644
--- a/lldb/unittests/Disassembler/x86/TestGetControlFlowKindx86.cpp
+++ b/lldb/unittests/Disassembler/x86/TestGetControlFlowKindx86.cpp
@@ -20,6 +20,7 @@
using namespace lldb;
using namespace lldb_private;
+namespace {
class TestGetControlFlowKindx86 : public testing::Test {
public:
static void SetUpTestCase();
@@ -39,6 +40,7 @@ void TestGetControlFlowKindx86::SetUpTestCase() {
void TestGetControlFlowKindx86::TearDownTestCase() {
DisassemblerLLVMC::Terminate();
}
+} // namespace
TEST_F(TestGetControlFlowKindx86, TestX86_64Instruction) {
ArchSpec arch("x86_64-*-linux");
More information about the lldb-commits
mailing list