[llvm] b29fb9c - [llvm] Remove "using namespace llvm;" from header files (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 20:25:50 PDT 2023


Author: Kazu Hirata
Date: 2023-10-12T20:25:43-07:00
New Revision: b29fb9c9f4ae16233df10d104724d608aa7bdc3a

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

LOG: [llvm] Remove "using namespace llvm;" from header files (NFC)

Added: 
    

Modified: 
    llvm/include/llvm/ADT/GenericUniformityImpl.h
    llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
    llvm/include/llvm/Transforms/Instrumentation/CFGMST.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/GenericUniformityImpl.h b/llvm/include/llvm/ADT/GenericUniformityImpl.h
index ddd0746ccd91632..b7d0a1228ebfc04 100644
--- a/llvm/include/llvm/ADT/GenericUniformityImpl.h
+++ b/llvm/include/llvm/ADT/GenericUniformityImpl.h
@@ -49,8 +49,6 @@
 
 #define DEBUG_TYPE "uniformity"
 
-using namespace llvm;
-
 namespace llvm {
 
 template <typename Range> auto unique(Range &&R) {

diff  --git a/llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h b/llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
index 59378bc10873e36..50f9aae73dc53e2 100644
--- a/llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
+++ b/llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
@@ -84,8 +84,6 @@
 #include "llvm/Transforms/Utils/SCCPSolver.h"
 #include "llvm/Transforms/Utils/SizeOpts.h"
 
-using namespace llvm;
-
 namespace llvm {
 // Map of potential specializations for each function. The FunctionSpecializer
 // keeps the discovered specialisation opportunities for the module in a single

diff  --git a/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h b/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
index 269441db7a55896..6ed8a6c6eaf0197 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
+++ b/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
@@ -28,8 +28,6 @@
 
 #define DEBUG_TYPE "cfgmst"
 
-using namespace llvm;
-
 namespace llvm {
 
 /// An union-find based Minimum Spanning Tree for CFG


        


More information about the llvm-commits mailing list