[llvm] dbb158e - Remove top-level using directives from Transforms/IPO headers

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 02:23:18 PDT 2022


Author: Pavel Labath
Date: 2022-04-05T11:22:37+02:00
New Revision: dbb158ebf4e3232065030b12762a98a1a5bb55c6

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

LOG: Remove top-level using directives from Transforms/IPO headers

These directives pollute the namespace of all files which include the
header.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
    llvm/include/llvm/Transforms/IPO/SampleContextTracker.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h b/llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
index 5195d4c89d6ee..21c5cc827fd91 100644
--- a/llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
+++ b/llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
@@ -18,9 +18,6 @@
 #include <queue>
 #include <set>
 
-using namespace llvm;
-using namespace sampleprof;
-
 namespace llvm {
 namespace sampleprof {
 

diff  --git a/llvm/include/llvm/Transforms/IPO/SampleContextTracker.h b/llvm/include/llvm/Transforms/IPO/SampleContextTracker.h
index cdb37b21e5ba1..0e23c9f6bab71 100644
--- a/llvm/include/llvm/Transforms/IPO/SampleContextTracker.h
+++ b/llvm/include/llvm/Transforms/IPO/SampleContextTracker.h
@@ -21,9 +21,6 @@
 #include <map>
 #include <vector>
 
-using namespace llvm;
-using namespace sampleprof;
-
 namespace llvm {
 class CallBase;
 class DILocation;


        


More information about the llvm-commits mailing list