Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[llvm] Remove unused using decls (NFC) #138386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kazutakahirata
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented May 3, 2025

@llvm/pr-subscribers-tools-llvm-exegesis

@llvm/pr-subscribers-llvm-support

Author: Kazu Hirata (kazutakahirata)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/138386.diff

5 Files Affected:

  • (modified) llvm/unittests/Support/FormatVariadicTest.cpp (-1)
  • (modified) llvm/unittests/Support/YAMLIOTest.cpp (-1)
  • (modified) llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp (-2)
  • (modified) llvm/unittests/Target/SPIRV/SPIRVConvergenceRegionAnalysisTests.cpp (-3)
  • (modified) llvm/unittests/tools/llvm-exegesis/RISCV/TargetTest.cpp (-1)
diff --git a/llvm/unittests/Support/FormatVariadicTest.cpp b/llvm/unittests/Support/FormatVariadicTest.cpp
index 03102c96d4662..7335826c91401 100644
--- a/llvm/unittests/Support/FormatVariadicTest.cpp
+++ b/llvm/unittests/Support/FormatVariadicTest.cpp
@@ -13,7 +13,6 @@
 #include "gtest/gtest.h"
 
 using namespace llvm;
-using ::testing::HasSubstr;
 
 // Compile-time tests templates in the detail namespace.
 namespace {
diff --git a/llvm/unittests/Support/YAMLIOTest.cpp b/llvm/unittests/Support/YAMLIOTest.cpp
index 080f2b9619d1a..283e5f829ba46 100644
--- a/llvm/unittests/Support/YAMLIOTest.cpp
+++ b/llvm/unittests/Support/YAMLIOTest.cpp
@@ -25,7 +25,6 @@ using llvm::yaml::Hex8;
 using llvm::yaml::Input;
 using llvm::yaml::isNumeric;
 using llvm::yaml::MappingNormalization;
-using llvm::yaml::MappingTraits;
 using llvm::yaml::Output;
 using llvm::yaml::ScalarTraits;
 using ::testing::StartsWith;
diff --git a/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp b/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp
index 5eae9277c4438..da713007f662d 100644
--- a/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp
+++ b/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp
@@ -22,8 +22,6 @@
 #include <string>
 #include <utility>
 
-using ::testing::StartsWith;
-
 namespace llvm {
 
 extern "C" LLVM_EXTERNAL_VISIBILITY bool
diff --git a/llvm/unittests/Target/SPIRV/SPIRVConvergenceRegionAnalysisTests.cpp b/llvm/unittests/Target/SPIRV/SPIRVConvergenceRegionAnalysisTests.cpp
index b3d5f0a32fc35..01105989774af 100644
--- a/llvm/unittests/Target/SPIRV/SPIRVConvergenceRegionAnalysisTests.cpp
+++ b/llvm/unittests/Target/SPIRV/SPIRVConvergenceRegionAnalysisTests.cpp
@@ -24,9 +24,6 @@
 #include "gtest/gtest.h"
 #include <queue>
 
-using ::testing::Contains;
-using ::testing::Pair;
-
 using namespace llvm;
 using namespace llvm::SPIRV;
 
diff --git a/llvm/unittests/tools/llvm-exegesis/RISCV/TargetTest.cpp b/llvm/unittests/tools/llvm-exegesis/RISCV/TargetTest.cpp
index 12d3ce7165a86..c86a4363e7b42 100644
--- a/llvm/unittests/tools/llvm-exegesis/RISCV/TargetTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/RISCV/TargetTest.cpp
@@ -27,7 +27,6 @@ namespace {
 
 using testing::IsEmpty;
 using testing::Not;
-using testing::NotNull;
 
 class RISCVTargetTest : public RISCVTestBase {
 protected:

@kazutakahirata kazutakahirata merged commit b4fac94 into llvm:main May 3, 2025
14 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_001_tidy_misc-unused-using-decls_llvm_unit branch May 3, 2025 14:05
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants