Skip to content

Commit dfa8a15

Browse files
committed
[lldb][NFC] Put disassembler test classes and methods in anonymous namespace
Reviewed By: DavidSpickett, MaskRay Differential Revision: https://reviews.llvm.org/D158971
1 parent a69cb20 commit dfa8a15

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

lldb/unittests/Disassembler/ARM/TestArm64Disassembly.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using namespace lldb;
2121
using namespace lldb_private;
2222

23+
namespace {
2324
class TestArm64Disassembly : public testing::Test {
2425
public:
2526
static void SetUpTestCase();
@@ -42,6 +43,7 @@ void TestArm64Disassembly::SetUpTestCase() {
4243
void TestArm64Disassembly::TearDownTestCase() {
4344
DisassemblerLLVMC::Terminate();
4445
}
46+
} // namespace
4547

4648
TEST_F(TestArm64Disassembly, TestArmv81Instruction) {
4749
ArchSpec arch("arm64-apple-ios");

lldb/unittests/Disassembler/ARM/TestArmv7Disassembly.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using namespace lldb;
2121
using namespace lldb_private;
2222

23+
namespace {
2324
class TestArmv7Disassembly : public testing::Test {
2425
public:
2526
static void SetUpTestCase();
@@ -42,6 +43,7 @@ void TestArmv7Disassembly::SetUpTestCase() {
4243
void TestArmv7Disassembly::TearDownTestCase() {
4344
DisassemblerLLVMC::Terminate();
4445
}
46+
} // namespace
4547

4648
TEST_F(TestArmv7Disassembly, TestCortexFPDisass) {
4749
ArchSpec arch("armv7em--");

lldb/unittests/Disassembler/RISCV/TestMCDisasmInstanceRISCV.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using namespace lldb;
2121
using namespace lldb_private;
2222

23+
namespace {
2324
class TestMCDisasmInstanceRISCV : public testing::Test {
2425
public:
2526
static void SetUpTestCase();
@@ -39,6 +40,7 @@ void TestMCDisasmInstanceRISCV::SetUpTestCase() {
3940
void TestMCDisasmInstanceRISCV::TearDownTestCase() {
4041
DisassemblerLLVMC::Terminate();
4142
}
43+
} // namespace
4244

4345
TEST_F(TestMCDisasmInstanceRISCV, TestRISCV32Instruction) {
4446
ArchSpec arch("riscv32-*-linux");

lldb/unittests/Disassembler/x86/TestGetControlFlowKindx86.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using namespace lldb;
2121
using namespace lldb_private;
2222

23+
namespace {
2324
class TestGetControlFlowKindx86 : public testing::Test {
2425
public:
2526
static void SetUpTestCase();
@@ -39,6 +40,7 @@ void TestGetControlFlowKindx86::SetUpTestCase() {
3940
void TestGetControlFlowKindx86::TearDownTestCase() {
4041
DisassemblerLLVMC::Terminate();
4142
}
43+
} // namespace
4244

4345
TEST_F(TestGetControlFlowKindx86, TestX86_64Instruction) {
4446
ArchSpec arch("x86_64-*-linux");

0 commit comments

Comments
 (0)